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;
|
||||
}
|
||||
|
||||
QLPainter pain(viewport());
|
||||
|
||||
if (rc.width() == 3) { // FIXME HACK
|
||||
// Assume splash screen drawing is requested when
|
||||
// width == 3
|
||||
lyxerr << "splash screen requested" << endl;
|
||||
QLPainter pain(viewport());
|
||||
doGreyOut(pain);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!buffer_view_->buffer()) {
|
||||
lyxerr << "no buffer: " << endl;
|
||||
QLPainter pain(viewport());
|
||||
doGreyOut(pain);
|
||||
updateScrollbar();
|
||||
return;
|
||||
}
|
||||
|
||||
//lyxerr << "real drawing" << endl;
|
||||
QLPainter pain(viewport());
|
||||
paintText(*buffer_view_, pain);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user