UI/Previewers/PreviewerHTML.py

branch
6_1_x
changeset 5267
ede9faf7388a
parent 4972
fe8015457551
--- a/UI/Previewers/PreviewerHTML.py	Fri Oct 21 18:42:11 2016 +0200
+++ b/UI/Previewers/PreviewerHTML.py	Mon Oct 24 18:53:40 2016 +0200
@@ -252,7 +252,10 @@
                 "return res;"
                 "})()"
             )
-            pos = QPoint(pos["x"], pos["y"])
+            if pos is not None:
+                pos = QPoint(pos["x"], pos["y"])
+            else:
+                pos = QPoint(0, 0)
             self.__scrollBarPositions[self.__previewedPath] = pos
             self.__hScrollBarAtEnd[self.__previewedPath] = False
             self.__vScrollBarAtEnd[self.__previewedPath] = False

eric ide

mercurial