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:
Abdelrazak Younes 2006-10-30 13:49:41 +00:00
parent 992fe1dba6
commit fbcc021da6

View File

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