Changeset 4763 in josm


Ignore:
Timestamp:
Jan 4, 2012 10:02:41 AM (18 months ago)
Author:
akks
Message:

fix #7214 Memory growing and CPU load while idle (minor change)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/MapStatus.java

    r4739 r4763  
    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 { 
     
    275275                                    } 
    276276 
    277                                     // Set the text label in the bottom status bar 
    278                                     statusBarElementUpdate(ms); 
     277                                    // Set the text label in the bottom status bar  
     278                                    // "if mouse moved only" was added to stop heap growing 
     279                                    if (!mouseNotMoved) statusBarElementUpdate(ms); 
    279280 
    280281 
Note: See TracChangeset for help on using the changeset viewer.