From 52d5db9c15b9d513699b33ea047bdeb0b626ede7 Mon Sep 17 00:00:00 2001 From: Cary Sandvig Date: Fri, 9 Mar 2001 02:14:36 +0000 Subject: [PATCH] oops. Inverse logic in adjust_region --- panda/src/gui/guiButton.cxx | 2 +- panda/src/gui/guiRollover.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/panda/src/gui/guiButton.cxx b/panda/src/gui/guiButton.cxx index 69b9671676..2f45aa1d16 100644 --- a/panda/src/gui/guiButton.cxx +++ b/panda/src/gui/guiButton.cxx @@ -285,7 +285,7 @@ void GuiButton::adjust_region(void) { _right, _bottom, _top); gui_cat->debug() << "in adjust_region, base values (" << _left << ", " << _right << ", " << _bottom << ", " << _top << ")" << endl; - if (_alt_root.is_null()) { + if (!(_alt_root.is_null())) { // adjust for graph transform LMatrix4f m; this->get_graph_mat(m); diff --git a/panda/src/gui/guiRollover.cxx b/panda/src/gui/guiRollover.cxx index 71ca337e48..0f748c72d0 100644 --- a/panda/src/gui/guiRollover.cxx +++ b/panda/src/gui/guiRollover.cxx @@ -70,7 +70,7 @@ void GuiRollover::adjust_region(void) { GetExtents(_off, _on, _left, _right, _bottom, _top); gui_cat->debug() << "in adjust_region, base values (" << _left << ", " << _right << ", " << _bottom << ", " << _top << ")" << endl; - if (_alt_root.is_null()) { + if (!(_alt_root.is_null())) { // adjust for graph transform LMatrix4f m; this->get_graph_mat(m);