[Schmitzm-commits] r163 - trunk/src/schmitzm/geotools/gui

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Jun 23 16:44:38 CEST 2009


Author: alfonx
Date: 2009-06-23 16:44:37 +0200 (Tue, 23 Jun 2009)
New Revision: 163

Modified:
   trunk/src/schmitzm/geotools/gui/JMapPane.java
Log:
* MapComposer remembers the state of the eye symbol now and restores it in the AtlasViewer

Modified: trunk/src/schmitzm/geotools/gui/JMapPane.java
===================================================================
--- trunk/src/schmitzm/geotools/gui/JMapPane.java	2009-06-22 21:05:20 UTC (rev 162)
+++ trunk/src/schmitzm/geotools/gui/JMapPane.java	2009-06-23 14:44:37 UTC (rev 163)
@@ -646,9 +646,14 @@
             // welches nur aus 2 Punnkten besteht, sichtbar ist (Punkte liegen
             // sonst
             // genau auf dem Rand der angezeigten Flaeche)
-            mapAreaNew.expandBy(mapAreaNew.getWidth() * 0.1, mapAreaNew
-                    .getHeight() * 0.1);
-            setMapArea(mapAreaNew);
+            
+            if (mapAreaNew != null) {
+            	mapAreaNew.expandBy(mapAreaNew.getWidth() * 0.1, mapAreaNew
+            			.getHeight() * 0.1);
+            	setMapArea(mapAreaNew);
+            } else {
+            	LOGGER.warn("Couldn't transformEnvelope when zooming to the layer");
+            }
         } catch (Exception err) {
             LOGGER.warn("Zoom to layer did not terminate correctly", err);
         }



More information about the Schmitzm-commits mailing list