mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
T466: Fixed crash on small files
This commit is contained in:
parent
2d2b8601a0
commit
529c47c690
1 changed files with 1 additions and 0 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue