From 0c6a27b3534d9e4ab594853afe0c280a35ef083e Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 25 Apr 2009 00:06:03 +0000 Subject: Moved box folding constants into deprecated category. They have been documented as deprecated for 3 years. --- src/Editor.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index ae2c16137..aa6f0d52e 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -3102,7 +3102,9 @@ void Editor::Paint(Surface *surfaceWindow, PRectangle rcArea) { ll->RestoreBracesHighlight(rangeLine, braces); bool expanded = cs.GetExpanded(lineDoc); +#ifdef INCLUDE_DEPRECATED_FEATURES if ((foldFlags & SC_FOLDFLAG_BOX) == 0) { +#endif // Paint the line above the fold if ((expanded && (foldFlags & SC_FOLDFLAG_LINEBEFORE_EXPANDED)) || @@ -3123,6 +3125,7 @@ void Editor::Paint(Surface *surfaceWindow, PRectangle rcArea) { surface->FillRectangle(rcFoldLine, vs.styles[STYLE_DEFAULT].fore.allocated); } } +#ifdef INCLUDE_DEPRECATED_FEATURES } else { int FoldLevelCurr = (pdoc->GetLevel(lineDoc) & SC_FOLDLEVELNUMBERMASK) - SC_FOLDLEVELBASE; int FoldLevelPrev = (pdoc->GetLevel(lineDoc - 1) & SC_FOLDLEVELNUMBERMASK) - SC_FOLDLEVELBASE; @@ -3158,6 +3161,7 @@ void Editor::Paint(Surface *surfaceWindow, PRectangle rcArea) { surface->FillRectangle(rcBoxLine, vs.styles[STYLE_DEFAULT].fore.allocated); } } +#endif // Draw the Caret if (lineDoc == lineCaret) { -- cgit v1.2.3