Pārlūkot izejas kodu

fix paste-buffer corruption bug

David Rose 20 gadi atpakaļ
vecāks
revīzija
c4306e0f4b
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      panda/src/tform/mouseWatcher.cxx

+ 1 - 1
panda/src/tform/mouseWatcher.cxx

@@ -679,7 +679,7 @@ throw_event_pattern(const string &pattern, const MouseWatcherRegion *region,
       p++;
       p++;
       if (cmd == "r") {
       if (cmd == "r") {
         if (region != (MouseWatcherRegion *)NULL) {
         if (region != (MouseWatcherRegion *)NULL) {
-          event += button_name;
+          event += region->get_name();
         }
         }
 
 
       } else if (cmd == "b") {
       } else if (cmd == "b") {