diff options
author | nyamatongwe <devnull@localhost> | 2009-09-20 23:29:04 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2009-09-20 23:29:04 +0000 |
commit | 02aab1cd90784fcdd3fc36e0b3b405530fd15c54 (patch) | |
tree | e58089925207cd2cea132259505442fc29c80a6a /src | |
parent | c5336a3435d3b237318cc31de66448709c683a9a (diff) | |
download | scintilla-mirror-02aab1cd90784fcdd3fc36e0b3b405530fd15c54.tar.gz |
Moved line width calculation code so that it is protected from the
possibility of a NULL pointer.
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index d6fe5eb6a..61008613d 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -3354,6 +3354,9 @@ void Editor::Paint(Surface *surfaceWindow, PRectangle rcArea) { rcClient.right, yposScreen + vs.lineHeight); surfaceWindow->Copy(rcCopyArea, from, *pixmapLine); } + + lineWidthMaxSeen = Platform::Maximum( + lineWidthMaxSeen, ll->positions[ll->numCharsInLine]); //durCopy += et.Duration(true); } @@ -3364,8 +3367,6 @@ void Editor::Paint(Surface *surfaceWindow, PRectangle rcArea) { yposScreen += vs.lineHeight; visibleLine++; - lineWidthMaxSeen = Platform::Maximum( - lineWidthMaxSeen, ll->positions[ll->numCharsInLine]); //gdk_flush(); } ll.Set(0); |