From 32e777c7864a7051ce4588ac610a63292ad68869 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Peter=20K=C3=BCmmel?= Date: Sat, 28 Oct 2006 17:14:51 +0000 Subject: [PATCH] remove warning, use shorter code git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15595 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiView.C | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/frontends/qt4/GuiView.C b/src/frontends/qt4/GuiView.C index 319a44291d..d9b65427d5 100644 --- a/src/frontends/qt4/GuiView.C +++ b/src/frontends/qt4/GuiView.C @@ -160,10 +160,8 @@ void GuiView::setGeometry(unsigned int width, // http://doc.trolltech.com/4.2/qdesktopwidget.html QDesktopWidget& dw = *qApp->desktop(); QRect desk = dw.availableGeometry(dw.primaryScreen()); - if (posx >= desk.width()) - posx = 0.1 * desk.width(); - if (posy >= desk.height()) - posy = 0.1 * desk.height(); + (posx >= desk.width() ? posx = 50 : true); + (posy >= desk.height()? posy = 50 : true); #ifdef Q_WS_WIN // FIXME: use only setGeoemtry when Trolltech has // fixed the qt4/X11 bug -- 2.39.2