mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
small cleanup while looking for a bug.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15620 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
992fe1dba6
commit
fbcc021da6
@ -574,26 +574,24 @@ void GuiWorkArea::paintEvent(QPaintEvent * ev)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QLPainter pain(viewport());
|
||||||
|
|
||||||
if (rc.width() == 3) { // FIXME HACK
|
if (rc.width() == 3) { // FIXME HACK
|
||||||
// Assume splash screen drawing is requested when
|
// Assume splash screen drawing is requested when
|
||||||
// width == 3
|
// width == 3
|
||||||
lyxerr << "splash screen requested" << endl;
|
lyxerr << "splash screen requested" << endl;
|
||||||
QLPainter pain(viewport());
|
|
||||||
doGreyOut(pain);
|
doGreyOut(pain);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!buffer_view_->buffer()) {
|
if (!buffer_view_->buffer()) {
|
||||||
lyxerr << "no buffer: " << endl;
|
lyxerr << "no buffer: " << endl;
|
||||||
QLPainter pain(viewport());
|
|
||||||
doGreyOut(pain);
|
doGreyOut(pain);
|
||||||
updateScrollbar();
|
updateScrollbar();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//lyxerr << "real drawing" << endl;
|
//lyxerr << "real drawing" << endl;
|
||||||
QLPainter pain(viewport());
|
|
||||||
paintText(*buffer_view_, pain);
|
paintText(*buffer_view_, pain);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user