]> git.mxchange.org Git - flightgear.git/blobdiff - src/GUI/layout.cxx
accomodate changes to osgDB::DatabasePager interface
[flightgear.git] / src / GUI / layout.cxx
index 5bfd3524340ea1b8118def305388851e4847967c..b6fa5ab8f44926c56307f5056926fe72b65d2432 100644 (file)
@@ -1,5 +1,12 @@
+
+#ifdef HAVE_CONFIG_H
+#  include <config.h>
+#endif
+
 #include "layout.hxx"
 
+#include <simgear/math/SGMath.hxx>
+
 // This file contains the actual layout engine.  It has no dependence
 // on outside libraries; see layout-props.cxx for the glue code.
 
@@ -73,7 +80,7 @@ void LayoutWidget::calcPrefSize(int* w, int* h)
         if(getBool("vertical")) *w = 4*UNIT;
         else                    *h = 4*UNIT;
     } else if (isType("list") || isType("airport-list")
-            || isType("property-list") || isType("dial")) {
+            || isType("property-list") || isType("dial") || isType("waypointlist")) {
         *w = *h = 12*UNIT;
     } else if (isType("hrule")) {
         *h = 1;