Ignore:
Timestamp:
2006-06-10T23:45:21+02:00 (20 years ago)
Author:
imi
Message:
  • added more timestamp formats to GeoImage - date import (all ISO formats)
  • changed insert node into segment mode to not move the new node out of line (except pressing Alt)
  • fixed bug in Merger, where two new (but unrelated) segments got merged
  • fixed NPE in MapMover when pressing Ctrl+- or Ctrl-- and mouse outside of JOSM
  • added "modified" as search criteria for searching after modified elements
File:
1 edited

Legend:

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

    r101 r102  
    22
    33import java.awt.Cursor;
     4import java.awt.Point;
    45import java.awt.event.ActionEvent;
    56import java.awt.event.KeyEvent;
     
    3233            public void actionPerformed(ActionEvent e) {
    3334                if (action.equals("+") || action.equals("-")) {
    34                         MouseWheelEvent we = new MouseWheelEvent(nc, e.getID(), e.getWhen(), e.getModifiers(), nc.getMousePosition().x, nc.getMousePosition().y, 0, false, MouseWheelEvent.WHEEL_UNIT_SCROLL, 1, action.equals("+") ? -1 : 1);
     35                        Point mouse = nc.getMousePosition();
     36                        if (mouse == null)
     37                                mouse = new Point((int)nc.getBounds().getCenterX(), (int)nc.getBounds().getCenterY());
     38                        MouseWheelEvent we = new MouseWheelEvent(nc, e.getID(), e.getWhen(), e.getModifiers(), mouse.x, mouse.y, 0, false, MouseWheelEvent.WHEEL_UNIT_SCROLL, 1, action.equals("+") ? -1 : 1);
    3539                        mouseWheelMoved(we);
    3640                } else {
Note: See TracChangeset for help on using the changeset viewer.