aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2004-04-19 12:52:02 +0000
committernyamatongwe <devnull@localhost>2004-04-19 12:52:02 +0000
commit0fa762719bffc33e4572872a2b1e3ca1e76ff431 (patch)
treebb2d31dca351d7ef7e896e4d2100295bbd1ab485 /src/Editor.cxx
parent90a2fdb00b92e8338ef9b32b889aadbf31ed0acf (diff)
downloadscintilla-mirror-0fa762719bffc33e4572872a2b1e3ca1e76ff431.tar.gz
Fix to line layout cache use. When a line was retrieved from
the line layout cache and then replaced with another that mapped to the same cache entry then there could be use of a deleted pointer.
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 351ff86d8..af5caf46d 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -2614,6 +2614,7 @@ void Editor::Paint(Surface *surfaceWindow, PRectangle rcArea) {
// and determine the x position at which each character starts.
//ElapsedTime et;
if (lineDoc != lineDocPrevious) {
+ ll.Set(0);
ll.Set(RetrieveLineLayout(lineDoc));
LayoutLine(lineDoc, surface, vs, ll, wrapWidth);
lineDocPrevious = lineDoc;