/[schmitzm]/branches/2.0-RC1/src/skrueger/geotools/XMapPane.java
ViewVC logotype

Diff of /branches/2.0-RC1/src/skrueger/geotools/XMapPane.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 555 by alfonx, Tue Nov 24 09:17:22 2009 UTC revision 556 by alfonx, Tue Nov 24 12:56:09 2009 UTC
# Line 643  public class XMapPane extends JPanel { Line 643  public class XMapPane extends JPanel {
643                          @Override                          @Override
644                          public void componentResized(final ComponentEvent e) {                          public void componentResized(final ComponentEvent e) {
645    
646                                  // Seems to be called twice with the same size..                                  // Seems to be called twice with the same size..
647                                  if (oldVisibleRect != null                                  if (oldVisibleRect != null
648                                                  && oldVisibleRect.equals(getVisibleRect())){                                                  && oldVisibleRect.equals(getVisibleRect())) {
649                                          LOGGER.info("skipping resize.");                                          LOGGER.info("skipping resize.");
650                                          return;                                          return;
651                                  }                                  }
# Line 1712  public class XMapPane extends JPanel { Line 1712  public class XMapPane extends JPanel {
1712          }          }
1713    
1714          public boolean setMapArea(final Envelope newMapArea) {          public boolean setMapArea(final Envelope newMapArea) {
1715                    if (newMapArea == null)
1716                            return false;
1717                    if (getMapContext()
1718                                    .getCoordinateReferenceSystem() == null) return false;
1719                  return setMapArea(new ReferencedEnvelope(newMapArea, getMapContext()                  return setMapArea(new ReferencedEnvelope(newMapArea, getMapContext()
1720                                  .getCoordinateReferenceSystem()));                                  .getCoordinateReferenceSystem()));
1721          }          }

Legend:
Removed from v.555  
changed lines
  Added in v.556

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26