dabo Commit
Revision 4469
Date: 2008-08-27 13:13:53 -0700 (Wed, 27 Aug 2008)
Author: Nate
Trac: http://svn.dabodev.com/trac/dabo/changeset/4469

Changed:
U   trunk/dabo/ui/uiwx/dEditor.py

Log:
Fixed the issue with AutoIndent not working.  The issue was that 
GetLineIndentation wanted wx's zero based line number instead of the 1 based 
line number we use.  We were using the 1 based line number, and the indentation 
level of the new blank line was returned and always zero.  This fixes that.

Diff:
Modified: trunk/dabo/ui/uiwx/dEditor.py
===================================================================
--- trunk/dabo/ui/uiwx/dEditor.py       2008-08-27 19:50:43 UTC (rev 4468)
+++ trunk/dabo/ui/uiwx/dEditor.py       2008-08-27 20:13:53 UTC (rev 4469)
@@ -929,7 +929,7 @@
                        ## PythonCard - Thanks Kevin for suggesting I take a 
look at it.
                        evt.Continue = False
                        self.CmdKeyExecute(stc.STC_CMD_NEWLINE)
-                       line = self.LineNumber - 1
+                       line = self._ZeroBasedLineNumber - 1
                        txt = self.GetLine(line).rstrip()
                        
                        currIndent = self.GetIndent()




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]

Reply via email to