Pass width = 0 and height = 0 as unsigned int to indicate the usage of the geometry option

* lyx_main.C set             width and height to 0
	* frontends/qt3/lyx_gui.C    test on 0
	* frontends/qt4/lyx_gui.C    test on 0  
	


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14235 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Peter Kümmel 2006-06-26 18:07:10 +00:00
parent a8bf36a413
commit 2deec8a96a
3 changed files with 4 additions and 4 deletions

View File

@ -247,7 +247,7 @@ void start(string const & batch, vector<string> const & files,
view.init();
if (width != -1 && height != -1) {
if (width != 0 && height != 0) {
view.initFloatingGeometry(QRect(posx, posy, width, height));
view.resize(width, height);
if (posx != -1 && posy != -1)

View File

@ -211,7 +211,7 @@ void start(string const & batch, vector<string> const & files,
view.init();
// only true when the -geometry option was NOT used
if (width != -1 && height != -1) {
if (width != 0 && height != 0) {
if (posx != -1 && posy != -1) {
#ifdef Q_OS_WIN32
// FIXME: use only setGeoemtry when Trolltech has

View File

@ -337,8 +337,8 @@ void LyX::exec2(int & argc, char * argv[])
}
if (geometryOption_) {
width = -1;
height = -1;
width = 0;
height = 0;
}
lyx_gui::start(batch_command, files, width, height, posx, posy, maximize);