Browse Source

tform: fix MouseWatcherRegion area calculation

Fixes #233
rdb 7 years ago
parent
commit
cbda6166a8
1 changed files with 2 additions and 2 deletions
  1. 2 2
      panda/src/tform/mouseWatcherRegion.I

+ 2 - 2
panda/src/tform/mouseWatcherRegion.I

@@ -17,11 +17,11 @@
 INLINE MouseWatcherRegion::
 MouseWatcherRegion(const std::string &name, PN_stdfloat left, PN_stdfloat right,
                    PN_stdfloat bottom, PN_stdfloat top) :
-  Namable(name),
-  _frame(left, right, bottom, top)
+  Namable(name)
 {
   _sort = 0;
   _flags = F_active;
+  set_frame(left, right, bottom, top);
 }
 
 /**