chiark
/
gitweb
/
~ianmdlvl
/
cura.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix slicing really big GCode files on windows.
[cura.git]
/
Cura
/
util
/
gcodeInterpreter.py
diff --git
a/Cura/util/gcodeInterpreter.py
b/Cura/util/gcodeInterpreter.py
index b187ea319cf29e8004701a4527582fc65a0c5aa7..95b42d751732fd9c6f450fe79e10499a94c59ca3 100644
(file)
--- a/
Cura/util/gcodeInterpreter.py
+++ b/
Cura/util/gcodeInterpreter.py
@@
-51,9
+51,9
@@
class gcode(object):
elif type(data) is list:
self._load(data)
else:
- data = data.getvalue()
self._fileSize = len(data)
- self._load(StringIO.StringIO(data))
+ data.seekStart()
+ self._load(data)
def calculateWeight(self):
#Calculates the weight of the filament in kg