T466: Fixed crash on small files

This commit is contained in:
Victor Larchenko 2016-11-05 15:39:21 +06:00 committed by Youness Alaoui
parent 2d2b8601a0
commit 529c47c690

View file

@ -104,6 +104,7 @@ class GCODEReader(MeshReader):
file.seek(0)
file_step = math.floor(file_lines / 100)
file_step = 1 if file_step < 1 else file_step
layer_data = LayerDataBuilder.LayerDataBuilder()