From 115748bb2ea768a391175e6e9b42d73be7c38d78 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 13 Jun 2000 05:47:20 +0000 Subject: Fixed paint bug where last line of document was drawn twice. --- src/Editor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index c6c1e8424..01a201088 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -1062,7 +1062,7 @@ void Editor::Paint(Surface *surfaceWindow, PRectangle rcArea) { rcTextArea.right -= vs.rightMarginWidth; surfaceWindow->SetClip(rcTextArea); //GTimer *tim=g_timer_new(); - while (visibleLine <= cs.LinesDisplayed() && yposScreen < rcArea.bottom) { + while (visibleLine < cs.LinesDisplayed() && yposScreen < rcArea.bottom) { //g_timer_start(tim); //Platform::DebugPrintf("Painting line %d\n", line); -- cgit v1.2.3