Changeset 11634 in josm


Ignore:
Timestamp:
2017-02-26T13:37:49+01:00 (10 months ago)
Author:
Don-vip
Message:

see #10638 - apply also optimization for initial DataSource area computation (patch by GerdP)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/DataSource.java

    r10346 r11634  
    33
    44import java.awt.geom.Area;
     5import java.awt.geom.Path2D;
    56import java.util.ArrayList;
    67import java.util.Collection;
     
    7778            return null;
    7879        }
    79         Area a = new Area();
     80        Path2D.Double p = new Path2D.Double();
    8081        for (DataSource source : dataSources) {
    8182            // create area from data bounds
    82             a.add(new Area(source.bounds.asRect()));
     83            p.append(source.bounds.asRect(), false);
    8384        }
    84         return a;
     85        return new Area(p);
    8586    }
    8687
Note: See TracChangeset for help on using the changeset viewer.