]> git.mxchange.org Git - flightgear.git/commitdiff
Make the dialogs work again.
authorehofman <ehofman>
Mon, 16 May 2005 08:37:18 +0000 (08:37 +0000)
committerehofman <ehofman>
Mon, 16 May 2005 08:37:18 +0000 (08:37 +0000)
src/GUI/dialog.cxx

index 0a70deab589f1c74d3afbdca169508d4ef36f105..6e9227104dffaad73455f6bfcbe794609a4cc4b6 100644 (file)
@@ -359,10 +359,10 @@ FGDialog::display (SGPropertyNode * props)
     int screenw = globals->get_props()->getIntValue("/sim/startup/xsize");
     int screenh = globals->get_props()->getIntValue("/sim/startup/ysize");
 
-    bool userx = props->hasValue("x");
-    bool usery = props->hasValue("y");
-    bool userw = props->hasValue("width");
-    bool userh = props->hasValue("height");
+    // bool userx = props->hasValue("x");
+    // bool usery = props->hasValue("y");
+    // bool userw = props->hasValue("width");
+    // bool userh = props->hasValue("height");
 
     LayoutWidget wid(props);
     int pw=0, ph=0;
@@ -377,11 +377,13 @@ FGDialog::display (SGPropertyNode * props)
     _object = makeObject(props, screenw, screenh);
 
     // Remove automatically generated properties, so the layout looks
+    // EMH - this isn't needed anymore since the layout remains in
+    //       the poprty tree now.
     // the same next time around.
-    if(!userx) props->removeChild("x");
-    if(!usery) props->removeChild("y");
-    if(!userw) props->removeChild("width");
-    if(!userh) props->removeChild("height");
+    // if(!userx) props->removeChild("x");
+    // if(!usery) props->removeChild("y");
+    // if(!userw) props->removeChild("width");
+    // if(!userh) props->removeChild("height");
 
     if (_object != 0) {
         _object->reveal();