Fix possible issue where checksum would break layer change detection

Should fix #348
master
Guillaume Seguin 2013-05-17 16:48:53 +02:00
parent a9c3e8b442
commit 89453befd1
1 changed files with 1 additions and 1 deletions

View File

@ -239,7 +239,7 @@ class PronterWindow(MainWindow, pronsole.pronsole):
if "G1" in line:
if "Z" in line:
try:
layer = float(line.split("Z")[1].split()[0])
layer = float(line.split("Z")[1].split()[0].split("*")[0])
if layer != self.curlayer:
self.curlayer = layer
self.gviz.hilight = []