mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Fix Qt crash
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6292 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
a68561ced7
commit
86154691fc
@ -1,3 +1,8 @@
|
||||
2003-02-27 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* screen.C (redraw, greyOut): ensure that the painter is started
|
||||
before attempting to paint.
|
||||
|
||||
2003-02-26 John Levon <levon@movementarian.org>
|
||||
|
||||
* screen.C: use RowPainter
|
||||
|
@ -111,7 +111,7 @@ SplashScreen::SplashScreen()
|
||||
|
||||
|
||||
LyXScreen::LyXScreen()
|
||||
: cursor_visible_(false), force_clear_(true), greyed_out_(false)
|
||||
: cursor_visible_(false), force_clear_(true), greyed_out_(true)
|
||||
{
|
||||
// Start loading the pixmap as soon as possible
|
||||
if (lyxrc.show_banner) {
|
||||
@ -361,13 +361,13 @@ void LyXScreen::redraw(LyXText * text, BufferView * bv)
|
||||
{
|
||||
greyed_out_ = !text;
|
||||
|
||||
workarea().getPainter().start();
|
||||
|
||||
if (greyed_out_) {
|
||||
greyOut();
|
||||
return;
|
||||
}
|
||||
|
||||
workarea().getPainter().start();
|
||||
|
||||
drawFromTo(text, bv, 0, workarea().workHeight(), 0, 0, text == bv->text);
|
||||
expose(0, 0, workarea().workWidth(), workarea().workHeight());
|
||||
|
||||
@ -385,6 +385,8 @@ void LyXScreen::greyOut()
|
||||
if (!greyed_out_)
|
||||
return;
|
||||
|
||||
workarea().getPainter().start();
|
||||
|
||||
workarea().getPainter().fillRectangle(0, 0,
|
||||
workarea().workWidth(),
|
||||
workarea().workHeight(),
|
||||
|
Loading…
Reference in New Issue
Block a user