]> git.lyx.org Git - lyx.git/commitdiff
don't break the geometry option
authorPeter Kümmel <syntheticpp@gmx.net>
Thu, 15 Jun 2006 16:01:55 +0000 (16:01 +0000)
committerPeter Kümmel <syntheticpp@gmx.net>
Thu, 15 Jun 2006 16:01:55 +0000 (16:01 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14122 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt3/lyx_gui.C
src/frontends/qt4/lyx_gui.C

index 34c9f7a50e8d7b761f575ef902f23e33d2fad515..a91f7b43f465b97e5713a91b77f44ec75175d2a1 100644 (file)
@@ -234,10 +234,11 @@ void start(string const & batch, vector<string> const & files,
 
        view.init();
                
-       view.setGeometry(posx, posy, width, height);
-
-       if (maximize)
-               view.setWindowState(Qt::WindowMaximized);
+       if (posx != -1 && posy != -1) {
+               view.setGeometry(posx, posy, width, height);
+               if (maximize)
+                       view.setWindowState(Qt::WindowMaximized);
+       }
 
        view.show();
 
index 8044543ae6c31a547395e31e37b4ea770a0c39a1..ea651bf38835767dcabceadcd806ed2535d3076f 100644 (file)
@@ -240,10 +240,11 @@ void start(string const & batch, vector<string> const & files,
 
        view.init();
                
-       view.setGeometry(posx, posy, width, height);
-
-       if (maximize)
-               view.setWindowState(Qt::WindowMaximized);
+       if (posx != -1 && posy != -1) {         
+               view.setGeometry(posx, posy, width, height);
+               if (maximize)
+                       view.setWindowState(Qt::WindowMaximized);
+       }
 
        view.show();