* 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
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.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
}
if (geometryOption_) {
- width = -1;
- height = -1;
+ width = 0;
+ height = 0;
}
lyx_gui::start(batch_command, files, width, height, posx, posy, maximize);