diff options
| author | nyamatongwe <unknown> | 2009-09-20 23:29:04 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2009-09-20 23:29:04 +0000 | 
| commit | b9772fd4e83670dc7618ece6c79e91d6dee0ad1c (patch) | |
| tree | e58089925207cd2cea132259505442fc29c80a6a /src | |
| parent | e6a198a09c4b2a002bb8a2baa8f0396f50af0d99 (diff) | |
| download | scintilla-mirror-b9772fd4e83670dc7618ece6c79e91d6dee0ad1c.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); | 
