[mapguide-commits] r8438 - trunk/Tools/Maestro/Thirdparty/SharpDevelop/ICSharpCode.TextEditor/Src/Gui

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Tue Nov 4 19:15:30 PST 2014


Author: jng
Date: 2014-11-04 19:15:30 -0800 (Tue, 04 Nov 2014)
New Revision: 8438

Modified:
   trunk/Tools/Maestro/Thirdparty/SharpDevelop/ICSharpCode.TextEditor/Src/Gui/TextView.cs
Log:
Fix more divide by zero shenanigans from the ICSharpCode.TextEditor

Modified: trunk/Tools/Maestro/Thirdparty/SharpDevelop/ICSharpCode.TextEditor/Src/Gui/TextView.cs
===================================================================
--- trunk/Tools/Maestro/Thirdparty/SharpDevelop/ICSharpCode.TextEditor/Src/Gui/TextView.cs	2014-10-31 13:04:57 UTC (rev 8437)
+++ trunk/Tools/Maestro/Thirdparty/SharpDevelop/ICSharpCode.TextEditor/Src/Gui/TextView.cs	2014-11-05 03:15:30 UTC (rev 8438)
@@ -498,7 +498,7 @@
 						DrawSpaceMarker(g, wordForeColor, physicalXPos, lineRectangle.Y);
 					}
 					physicalXPos += SpaceWidth;
-				} else if (currentWord.Type == TextWordType.Tab) {
+				} else if (currentWord.Type == TextWordType.Tab && TextEditorProperties.TabIndent > 0) {
 					
 					physicalColumn += TextEditorProperties.TabIndent;
 					physicalColumn = (physicalColumn / TextEditorProperties.TabIndent) * TextEditorProperties.TabIndent;



More information about the mapguide-commits mailing list