Changeset 35936 in osm for applications/editors
- Timestamp:
 - 2022-03-22T19:22:47+01:00 (4 years ago)
 - Location:
 - applications/editors/josm/plugins/splinex
 - Files:
 - 
      
- 3 edited
 
- 
          
  build.xml (modified) (1 diff)
 - 
          
  src/org/openstreetmap/josm/plugins/Splinex/DrawSplineAction.java (modified) (2 diffs)
 - 
          
  src/org/openstreetmap/josm/plugins/Splinex/Spline.java (modified) (1 diff)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
applications/editors/josm/plugins/splinex/build.xml
r35718 r35936 5 5 <property name="commit.message" value="Update spline shortcut key"/> 6 6 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 7 <property name="plugin.main.version" value="14 281"/>7 <property name="plugin.main.version" value="14960"/> 8 8 9 9 <!-- Configure these properties (replace "..." accordingly).  - 
      
applications/editors/josm/plugins/splinex/src/org/openstreetmap/josm/plugins/Splinex/DrawSplineAction.java
r35866 r35936 29 29 import org.openstreetmap.josm.data.osm.visitor.paint.MapPaintSettings; 30 30 import org.openstreetmap.josm.data.preferences.NamedColorProperty; 31 import org.openstreetmap.josm.data.projection.ProjectionRegistry;32 31 import org.openstreetmap.josm.gui.MainApplication; 33 32 import org.openstreetmap.josm.gui.MapFrame; … … 264 263 return; 265 264 EastNorth en = MainApplication.getMap().mapView.getEastNorth(e.getX(), e.getY()); 266 if ( ProjectionRegistry.getProjection().eastNorth2latlon(en).isOutSideWorld())265 if (new Node(en).isOutSideWorld()) 267 266 return; 268 267 if (dragSpline) {  - 
      
applications/editors/josm/plugins/splinex/src/org/openstreetmap/josm/plugins/Splinex/Spline.java
r34901 r35936 264 264 Node n = new Node(ProjectionRegistry.getProjection().eastNorth2latlon( 265 265 cubicBezier(a, ca, cb, b, (double) i / detail))); 266 if (n. getCoor().isOutSideWorld()) {266 if (n.isOutSideWorld()) { 267 267 JOptionPane.showMessageDialog(MainApplication.getMainFrame(), tr("Spline goes outside of the world.")); 268 268 return;  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  