*** empty log message ***

This commit is contained in:
David Rose 2001-02-21 19:18:19 +00:00
parent 990c29de79
commit b52209aecf
2 changed files with 8 additions and 0 deletions

View File

@ -111,6 +111,13 @@ static void click_button_up(CPT_Event e) {
}
void GuiButton::switch_state(GuiButton::States nstate) {
if (_mgr == (GuiManager*)0L) {
gui_cat.warning()
<< "Tried to switch state of unmanaged button\n";
_state = nstate;
return;
}
test_ref_count_integrity();
States ostate = _state;
// cleanup old state

View File

@ -2565,6 +2565,7 @@ r_get_net_transitions(const ArcComponent *comp,
////////////////////////////////////////////////////////////////////
string NodePath::
format_node_name(Node *node) const {
nassertr(node != (Node *)NULL, string());
string name;
if (node->is_of_type(NamedNode::get_class_type())) {
name = DCAST(NamedNode, node)->get_name();