* 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
This commit is contained in:
Stefan Schimanski 2007-06-11 18:22:00 +00:00
parent dbd31072c4
commit 22421dffb3

View File

@ -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);
}