/[schmitzm]/trunk/src/skrueger/geotools/XMapPane.java
ViewVC logotype

Diff of /trunk/src/skrueger/geotools/XMapPane.java

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

revision 496 by mojays, Fri Oct 23 14:19:46 2009 UTC revision 497 by alfonx, Fri Oct 23 18:43:58 2009 UTC
# Line 866  public class JMapPane extends JPanel imp Line 866  public class JMapPane extends JPanel imp
866    
867                  /**                  /**
868                   * Correct the aspect Ratio before we check the rest. Otherwise we might                   * Correct the aspect Ratio before we check the rest. Otherwise we might
869                   * easily fail.                   * easily fail. We allow to grow here, because we don't check against the maxExtend
870                   */                   */
871                  env = JTSUtil.fixAspectRatio(this.getBounds(), env, false);                  env = JTSUtil.fixAspectRatio(this.getBounds(), env, true);
872    
873                  final double scale = env.getWidth() / getWidth();                  final double scale = env.getWidth() / getWidth();
874                  final double centerX = env.getMinX() + env.getWidth() / 2.;                  final double centerX = env.getMinX() + env.getWidth() / 2.;

Legend:
Removed from v.496  
changed lines
  Added in v.497

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26