diff options
author | Neil <nyamatongwe@gmail.com> | 2014-08-05 09:50:44 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2014-08-05 09:50:44 +1000 |
commit | 5e8cb7f1926c42aa6dae5683d60a2aad32fe88bd (patch) | |
tree | 8c968f98c79be05314a9b275ff521755b56f7ef6 | |
parent | dd32e2085f1921e9b5f97c1c20180db8f68c1a91 (diff) | |
download | scintilla-mirror-5e8cb7f1926c42aa6dae5683d60a2aad32fe88bd.tar.gz |
Fix problem where annotations disappeared when SCI_CLEARDOCUMENTSTYLE called.
-rw-r--r-- | doc/ScintillaHistory.html | 3 | ||||
-rw-r--r-- | src/Editor.cxx | 1 |
2 files changed, 4 insertions, 0 deletions
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. </li> <li> + Bug fixed where annotations disappeared when SCI_CLEARDOCUMENTSTYLE called. + </li> + <li> Change the function prototypes to be complete for functions exported as "C". <a href="http://sourceforge.net/p/scintilla/bugs/1618/">Bug #1618</a>. </li> 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(); } |