forked from M-Labs/artiq
1
0
Fork 0

scanwidget: protect against resize from zero

fix #839
This commit is contained in:
Robert Jördens 2017-10-11 22:25:14 +02:00
parent a6cd42c4aa
commit cd0d73a1a2
1 changed files with 1 additions and 1 deletions

View File

@ -223,7 +223,7 @@ class ScanWidget(QtWidgets.QWidget):
self._zoom(self.zoomFactor**y, ev.x())
def resizeEvent(self, ev):
if not ev.oldSize().isValid():
if not ev.oldSize().isValid() or not ev.oldSize().width():
self.viewRange()
return
self.ticker.min_ticks = max(