aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2014-08-05 09:50:44 +1000
committerNeil <nyamatongwe@gmail.com>2014-08-05 09:50:44 +1000
commit0ea2bc6633ea080acf32da29bc14d3ee10dd2113 (patch)
tree26a476f3c1074ed930fdefe52b21075a83f25a1d /src/Editor.cxx
parent7912282d6629290de85497f2d13a4de6d0c1ac53 (diff)
downloadscintilla-mirror-0ea2bc6633ea080acf32da29bc14d3ee10dd2113.tar.gz
Fix problem where annotations disappeared when SCI_CLEARDOCUMENTSTYLE called.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index e0fc18162..13997de9f 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -2007,6 +2007,7 @@ void Editor::ClearDocumentStyle() {
pdoc->StartStyling(0, '\377');
pdoc->SetStyleFor(pdoc->Length(), 0);
cs.ShowAll();
+ SetAnnotationHeights(0, pdoc->LinesTotal());
pdoc->ClearLevels();
}