[Schmitzm-commits] r1736 - trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/gui

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Sep 27 17:37:51 CEST 2011


Author: keeb
Date: 2011-09-27 17:37:50 +0200 (Tue, 27 Sep 2011)
New Revision: 1736

Modified:
   trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/gui/XMapPane.java
Log:
replacing deprecated getLayerBounds() with getMaxBounds()

Modified: trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/gui/XMapPane.java
===================================================================
--- trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/gui/XMapPane.java	2011-09-26 09:20:31 UTC (rev 1735)
+++ trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/gui/XMapPane.java	2011-09-27 15:37:50 UTC (rev 1736)
@@ -1274,16 +1274,16 @@
 		if (mapArea == null) {
 			ReferencedEnvelope mapArea_ = null;
 			try {
-				mapArea_ = localContext.getLayerBounds();
+				mapArea_ = localContext.getMaxBounds();
 			} catch (final Exception e) {
-				LOGGER.warn("localContext.getLayerBounds()", e);
+				LOGGER.warn("localContext.getMaxBounds()", e);
 			}
 
 			if (mapArea_ == null && bgContext != null) {
 				try {
-					mapArea_ = bgContext.getLayerBounds();
-				} catch (final IOException e) {
-					LOGGER.warn("bgContext.getLayerBounds()", e);
+					mapArea_ = bgContext.getMaxBounds();
+				} catch (final Exception e) {
+					LOGGER.warn("bgContext.getMaxBounds()", e);
 				}
 			}
 



More information about the Schmitzm-commits mailing list