Fixed an issue in the web browser causing a traceback when resetting the zoom factor.

Sat, 13 Jun 2015 12:31:57 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 13 Jun 2015 12:31:57 +0200
changeset 4275
3bed5f74d328
parent 4272
169835cdf784
child 4277
b4b10e89e247
child 4278
ccd1e13cb9bd

Fixed an issue in the web browser causing a traceback when resetting the zoom factor.

Helpviewer/HelpBrowserWV.py file | annotate | diff | comparison | revisions
--- a/Helpviewer/HelpBrowserWV.py	Sun May 31 17:58:29 2015 +0200
+++ b/Helpviewer/HelpBrowserWV.py	Sat Jun 13 12:31:57 2015 +0200
@@ -1024,7 +1024,8 @@
         """
         Public method to reset the zoom factor.
         """
-        self.__currentZoom = self.__zoomLevels[HelpBrowser.ZoomLevelDefault]
+        index = self.__levelForZoom(HelpBrowser.ZoomLevelDefault)
+        self.__currentZoom = self.__zoomLevels[index]
         self.__applyZoom()
     
     def hasSelection(self):

eric ide

mercurial