]> git.mxchange.org Git - flightgear.git/blobdiff - src/GUI/property_list.cxx
return attribute mask as unsigned
[flightgear.git] / src / GUI / property_list.cxx
index 6fd2736333525f8c45db0d629fc109edf7b9f459..5aa1e3dbaae639b4dd9114430f936b3e850eb14b 100644 (file)
 
 #include <sstream>
 #include STL_IOMANIP
+#include <iostream>
 #include STL_STRING
 SG_USING_STD(string);
+using std::cout;
+
 typedef string stdString;      // puObject has a "string" member
 
 #include <Main/fg_os.hxx>      // fgGetKeyModifiers()
@@ -143,7 +146,7 @@ static void sanitize(stdString& s)
 
 
 PropertyList::PropertyList(int minx, int miny, int maxx, int maxy, SGPropertyNode *start) :
-    puList(minx, miny, maxx, maxy, short(0), 20),
+    puaList(minx, miny, maxx, maxy, short(0), 20),
     GUI_ID(FGCLASS_PROPERTYLIST),
     _curr(start),
     _return(0),
@@ -336,7 +339,7 @@ void PropertyList::updateTextForEntry(NodeData& data)
             int num = node->nListeners();
             if (data.listener)
                 num--;
-            if (lst)
+            if (num)
                 line << ", L" << num;
         }
         line << ')';