diff options
author | nyamatongwe <unknown> | 2004-04-19 12:52:02 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2004-04-19 12:52:02 +0000 |
commit | b2a307be20c9b4bb64ce39fddce669ec8f2e28c4 (patch) | |
tree | bb2d31dca351d7ef7e896e4d2100295bbd1ab485 /src | |
parent | 32a232e4b01daa4b810b3fc5a265ea819d16a775 (diff) | |
download | scintilla-mirror-b2a307be20c9b4bb64ce39fddce669ec8f2e28c4.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')
-rw-r--r-- | src/Editor.cxx | 1 |
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; |