[Schmitzm-commits] r1276 - trunk/src/skrueger/geotools
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Tue Nov 16 12:51:41 CET 2010
Author: alfonx
Date: 2010-11-16 12:51:41 +0100 (Tue, 16 Nov 2010)
New Revision: 1276
Modified:
trunk/src/skrueger/geotools/LegendIconFeatureRenderer.java
Log:
Fixed the preview symbol size
Modified: trunk/src/skrueger/geotools/LegendIconFeatureRenderer.java
===================================================================
--- trunk/src/skrueger/geotools/LegendIconFeatureRenderer.java 2010-11-15 19:11:11 UTC (rev 1275)
+++ trunk/src/skrueger/geotools/LegendIconFeatureRenderer.java 2010-11-16 11:51:41 UTC (rev 1276)
@@ -101,10 +101,13 @@
private LegendIconFeatureRenderer() {
}
- final static LegendIconFeatureRenderer instance = new LegendIconFeatureRenderer();
-
+ /**
+ * We have to return new instances here. Otherwise the sample features are
+ * not recreated and the sizes of the previews are locaked to the size of
+ * the first request.
+ */
public static LegendIconFeatureRenderer getInstance() {
- return instance;
+ return new LegendIconFeatureRenderer();
}
/**
More information about the Schmitzm-commits
mailing list