From 050ec00a46f30ece18fdf732690f5897651e7809 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 22 Feb 2013 17:06:50 +1100 Subject: Define the maximum number of margins in Scintilla.iface. --- src/ViewStyle.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/ViewStyle.h') diff --git a/src/ViewStyle.h b/src/ViewStyle.h index 5a623986b..ddcc64312 100644 --- a/src/ViewStyle.h +++ b/src/ViewStyle.h @@ -104,11 +104,10 @@ public: bool hotspotUnderline; bool hotspotSingleLine; /// Margins are ordered: Line Numbers, Selection Margin, Spacing Margin - enum { margins=5 }; int leftMarginWidth; ///< Spacing margin on left of text int rightMarginWidth; ///< Spacing margin on right of text int maskInLine; ///< Mask for markers to be put into text because there is nowhere for them to go in margin - MarginStyle ms[margins]; + MarginStyle ms[SC_MAX_MARGIN+1]; int fixedColumnWidth; int zoomLevel; WhiteSpaceVisibility viewWhitespace; -- cgit v1.2.3