From 0e9b1ece67bad13546b97eba6b56c031a5d8f31a Mon Sep 17 00:00:00 2001 From: David Rose Date: Mon, 15 Sep 2008 20:50:54 +0000 Subject: [PATCH] prevent hard crash --- panda/src/pgui/pgEntry.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/panda/src/pgui/pgEntry.cxx b/panda/src/pgui/pgEntry.cxx index 5f1c9bc12d..9d7171a5a2 100644 --- a/panda/src/pgui/pgEntry.cxx +++ b/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); } ////////////////////////////////////////////////////////////////////