Ticket #7214: StatusUpdate.patch

File StatusUpdate.patch, 1.8 KB (added by akks, 14 years ago)
  • MapStatus.java

    # This patch file was generated by NetBeans IDE
    # Following Index: paths are relative to: E:\JAVA\JOSM2\core\src\org\openstreetmap\josm\gui
    # This patch can be applied using context Tools: Patch action on respective folder.
    # It uses platform neutral UTF-8 encoding and \n newlines.
    # Above lines and this line are ignored by the patching process.
     
    256256                                // variable true. Of course we only want the popup to show
    257257                                // if the middle mouse button has been pressed in the first
    258258                                // place
    259                                 boolean isAtOldPosition = (oldMousePos != null
    260                                         && oldMousePos.equals(ms.mousePos)
    261                                         && popup != null);
     259                                boolean mouseNotMoved = oldMousePos != null
     260                                        && oldMousePos.equals(ms.mousePos);
     261                                boolean isAtOldPosition = mouseNotMoved && popup != null;
    262262                                boolean middleMouseDown = (ms.modifiers & MouseEvent.BUTTON2_DOWN_MASK) != 0;
    263263                                try {
    264264                                    ds = mv.getCurrentDataSet();
     
    275275                                    }
    276276
    277277                                    // Set the text label in the bottom status bar
    278                                     statusBarElementUpdate(ms);
     278                                    // "if mouse moved only" was added to stop heap growing
     279                                    if (!mouseNotMoved) statusBarElementUpdate(ms);
    279280
    280281
    281282                                    // Popup Information