From 61c935f04d3ea9052c8900eb932a3a8c47fc69d5 Mon Sep 17 00:00:00 2001 From: David Rose Date: Thu, 8 May 2008 16:41:08 +0000 Subject: [PATCH] patch suggested by Clemens Pecinovsky --- panda/src/tform/mouseWatcher.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/panda/src/tform/mouseWatcher.cxx b/panda/src/tform/mouseWatcher.cxx index a92f94cbbf..1de0722e6e 100644 --- a/panda/src/tform/mouseWatcher.cxx +++ b/panda/src/tform/mouseWatcher.cxx @@ -279,8 +279,8 @@ replace_group(MouseWatcherGroup *old_group, MouseWatcherGroup *new_group) { if (!remove.empty()) { Regions only_a, only_b, both; intersect_regions(only_a, only_b, both, - _current_regions, remove); - _current_regions.swap(only_a); + _regions, remove); + _regions.swap(only_a); if (has_region_in(both, _preferred_region)) { if (_preferred_region != (MouseWatcherRegion *)NULL) { @@ -297,8 +297,8 @@ replace_group(MouseWatcherGroup *old_group, MouseWatcherGroup *new_group) { if (!add.empty()) { Regions new_list; intersect_regions(new_list, new_list, new_list, - _current_regions, add); - _current_regions.swap(new_list); + _regions, add); + _regions.swap(new_list); } // Add the new group, if it's not already there.