Skip to content

Commit 0c5c60f

Browse files
committed
qtvcp -gcode_editor -round up the lines done calculation
The program should end at 100% This also cuts off the decimal portion, fixing a geditor 'line done' display issue
1 parent 09c2ffc commit 0c5c60f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/python/qtvcp/widgets/gcode_editor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ def highlight_line(self, w, line):
700700
LOG.debug('should reload the display')
701701
self.load_text(STATUS.old['file'])
702702
self._last_filename = STATUS.old['file']
703-
self.emit_percent(line*100/self.lines())
703+
self.emit_percent(round(line*100/self.lines()))
704704
self.moveMarker(line)
705705
self.setCursorPosition(line, 0)
706706
self.ensureCursorVisible()

0 commit comments

Comments
 (0)