From 0ea2bc6633ea080acf32da29bc14d3ee10dd2113 Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 5 Aug 2014 09:50:44 +1000 Subject: Fix problem where annotations disappeared when SCI_CLEARDOCUMENTSTYLE called. --- doc/ScintillaHistory.html | 3 +++ src/Editor.cxx | 1 + 2 files changed, 4 insertions(+) diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index 147eedb83..618049687 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -515,6 +515,9 @@ Bug fixed where style data was stale when deleting a rectangular selection.
  • + Bug fixed where annotations disappeared when SCI_CLEARDOCUMENTSTYLE called. +
  • +
  • Change the function prototypes to be complete for functions exported as "C". Bug #1618.
  • 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(); } -- cgit v1.2.3