[Schmitzm-commits] r600 - branches/1.0-gt2-2.6/src/skrueger/geotools

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Dec 1 18:59:08 CET 2009


Author: alfonx
Date: 2009-12-01 18:59:07 +0100 (Tue, 01 Dec 2009)
New Revision: 600

Modified:
   branches/1.0-gt2-2.6/src/skrueger/geotools/XMapPane.java
Log:
Fixed a seldom appearing resize - timing issue.

Modified: branches/1.0-gt2-2.6/src/skrueger/geotools/XMapPane.java
===================================================================
--- branches/1.0-gt2-2.6/src/skrueger/geotools/XMapPane.java	2009-12-01 14:35:24 UTC (rev 599)
+++ branches/1.0-gt2-2.6/src/skrueger/geotools/XMapPane.java	2009-12-01 17:59:07 UTC (rev 600)
@@ -640,8 +640,15 @@
 						// bounds.y + bounds.height);
 
 						paneResized = true;
-						if (setMapArea(getMapArea())) {
+						if (!setMapArea(getMapArea())) {
+							// It's important to request new rendering here.
+							// setMapArea only returns true and only calls
+							// requestStartRendering if the maparea has changed.
+							// But if the component is resized, the maparea
+							// doesn't have to change.
+							requestStartRendering();
 						}
+
 					}
 				});
 		resizeTimer.setRepeats(false);



More information about the Schmitzm-commits mailing list