Changeset 33953 in osm


Ignore:
Timestamp:
2017-12-16T07:54:47+01:00 (7 years ago)
Author:
glebius
Message:

Followup on r33420. Calling paint() won't redraw the GPS layer since it
isn't marked as invalidated. Instead invalidate it via the only public
way of doing that, I've found.

Now LiveGps will smoothly update as a vehicle running JOSM moves, without
need to drag the map.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/livegps/src/livegps/LiveGpsLayer.java

    r33739 r33953  
    111111                setCurrentPosition(lastData.getLatitude(), lastData.getLongitude());
    112112                if (allowRedraw())
    113                     MainApplication.getMap().repaint();
     113                    this.setFilterStateChanged();
    114114            }
    115115        }
Note: See TracChangeset for help on using the changeset viewer.