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());

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks