Browse Source

prevent hard crash

David Rose 17 years ago
parent
commit
0e9b1ece67
1 changed files with 4 additions and 0 deletions
  1. 4 0
      panda/src/pgui/pgEntry.cxx

+ 4 - 0
panda/src/pgui/pgEntry.cxx

@@ -74,6 +74,10 @@ PGEntry(const string &name) :
 
   set_active(true);
   update_state();
+
+  // Some default parameters so it doesn't crash hard if no one calls
+  // setup().
+  setup_minimal(10, 1);
 }
 
 ////////////////////////////////////////////////////////////////////