mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-26 22:17:41 +00:00
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:
parent
a8bf36a413
commit
2deec8a96a
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user