Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Diff of /src/SciTEBase.cxx [51e9db] .. [bb518b] Maximize Restore

  Switch to side-by-side view

--- a/src/SciTEBase.cxx
+++ b/src/SciTEBase.cxx
@@ -3007,7 +3007,8 @@
 				lineNumWidth = lineNumbersWidth;
 			}
 		}
-
+		if (lineNumWidth < 0)
+			lineNumWidth = 0;
 		// The 4 here allows for spacing: 1 pixel on left and 3 on right.
 		std::string nNines(lineNumWidth, '9');
 		int pixelWidth = 4 + wEditor.CallString(SCI_TEXTWIDTH, STYLE_LINENUMBER, nNines.c_str());