From 22421dffb3d3918ef27aac53a3746dc2f771390e Mon Sep 17 00:00:00 2001 From: Stefan Schimanski Date: Mon, 11 Jun 2007 18:22:00 +0000 Subject: [PATCH] * do not draw grey bars if another update strategy is active than fullscreen (fixes http://bugzilla.lyx.org/show_bug.cgi?id=3231). See http://thread.gmane.org/gmane.editors.lyx.devel/87296 for discussion. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18741 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/rowpainter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rowpainter.cpp b/src/rowpainter.cpp index c38f31196e..748658f093 100644 --- a/src/rowpainter.cpp +++ b/src/rowpainter.cpp @@ -1061,12 +1061,12 @@ void paintText(BufferView & bv, // and grey out above (should not happen later) // lyxerr << "par ascent: " << text.getPar(vi.p1).ascent() << endl; - if (vi.y1 > 0 && vi.update_strategy != SingleParUpdate) + if (vi.y1 > 0 && vi.update_strategy == FullScreenUpdate) pain.fillRectangle(0, 0, bv.workWidth(), vi.y1, Color::bottomarea); // and possibly grey out below // lyxerr << "par descent: " << text.getPar(vi.p1).ascent() << endl; - if (vi.y2 < bv.workHeight() && vi.update_strategy != SingleParUpdate) + if (vi.y2 < bv.workHeight() && vi.update_strategy == FullScreenUpdate) pain.fillRectangle(0, vi.y2, bv.workWidth(), bv.workHeight() - vi.y2, Color::bottomarea); } -- 2.39.2