mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 05:33:33 +00:00
* 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:
parent
dbd31072c4
commit
22421dffb3
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user