Fixed a bug introduced by the last change.

Sat, 08 May 2010 17:38:46 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 08 May 2010 17:38:46 +0200
changeset 229
fa7024a3cd58
parent 228
1cce8982e636
child 230
2cde09c26384

Fixed a bug introduced by the last change.

E5XML/SessionHandler.py file | annotate | diff | comparison | revisions
E5XML/SessionWriter.py file | annotate | diff | comparison | revisions
--- a/E5XML/SessionHandler.py	Sat May 08 17:33:47 2010 +0200
+++ b/E5XML/SessionHandler.py	Sat May 08 17:38:46 2010 +0200
@@ -112,7 +112,7 @@
         self.buffer = ""
         self.cline = int(attrs.get("cline", "0"))
         self.cindex = int(attrs.get("cindex", "0"))
-        self.zoom = int(attrs.get("zoom", "-1"))
+        self.zoom = int(attrs.get("zoom", "-9999"))
         
         folds = attrs.get("folds", "")
         if folds:
@@ -127,7 +127,7 @@
         self.vm.openFiles(self.buffer)
         ed = self.vm.getOpenEditor(self.buffer)
         if ed is not None:
-            if self.zoom > -1:
+            if self.zoom > -9999:
                 ed.zoomTo(self.zoom)
             if self.folds:
                 ed.recolor()
--- a/E5XML/SessionWriter.py	Sat May 08 17:33:47 2010 +0200
+++ b/E5XML/SessionWriter.py	Sat May 08 17:38:46 2010 +0200
@@ -80,7 +80,7 @@
                 else:
                     line, index = 0, 0
                     folds = ''
-                    zoom = -1
+                    zoom = -9999
                 self._write('    <Filename cline="%d" cindex="%d" folds="%s" zoom="%d">'
                             '%s</Filename>' % \
                     (line, index, folds, zoom, of))

eric ide

mercurial