# 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.
Index: MapStatus.java
--- MapStatus.java Base (BASE)
+++ MapStatus.java Locally Modified (Based On LOCAL)
@@ -256,9 +256,9 @@
                                 // variable true. Of course we only want the popup to show
                                 // if the middle mouse button has been pressed in the first
                                 // place
-                                boolean isAtOldPosition = (oldMousePos != null
-                                        && oldMousePos.equals(ms.mousePos)
-                                        && popup != null);
+                                boolean mouseNotMoved = oldMousePos != null
+                                        && oldMousePos.equals(ms.mousePos);
+                                boolean isAtOldPosition = mouseNotMoved && popup != null;
                                 boolean middleMouseDown = (ms.modifiers & MouseEvent.BUTTON2_DOWN_MASK) != 0;
                                 try {
                                     ds = mv.getCurrentDataSet();
@@ -275,7 +275,8 @@
                                     }
 
                                     // Set the text label in the bottom status bar
-                                    statusBarElementUpdate(ms);
+                                    // "if mouse moved only" was added to stop heap growing
+                                    if (!mouseNotMoved) statusBarElementUpdate(ms);
 
 
                                     // Popup Information
