changeset 166:51c99594346e

Fixed UniqueValueRendererReader to read all symbols correctly.
author vc11884admin@VC11884.win.bsh.de
date Mon, 04 Jul 2011 12:12:17 +0200
parents 87afe66f7d88
children b1e4a871033e
files ChangeLog src/java/de/intevation/mxd/reader/UniqueValueRendererReader.java
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Jun 30 14:59:44 2011 +0200
+++ b/ChangeLog	Mon Jul 04 12:12:17 2011 +0200
@@ -1,3 +1,9 @@
+2011-07-04  Raimund Renkert  <raimund.renkert@intevation.de>
+
+	* src/java/de/intevation/mxd/reader/UniqueValueRendererReader.java:
+	  Fixed an error that prevents the reader from reading the last symbol
+	  if a default symbol exists.
+
 2011-06-29  Stephan Holl  <stephan.holl@intevation.de>
 	* ttf-fonts/DejaVuSans.ttf: New.
 		* ttf-fonts/fonts.txt: Added FreeSans-Font as fallback for
--- a/src/java/de/intevation/mxd/reader/UniqueValueRendererReader.java	Thu Jun 30 14:59:44 2011 +0200
+++ b/src/java/de/intevation/mxd/reader/UniqueValueRendererReader.java	Mon Jul 04 12:12:17 2011 +0200
@@ -72,6 +72,9 @@
         int count = 0;
         try {
             count = renderer.getClassCount();
+            if(renderer.isUseDefaultSymbol()) {
+                count--;
+            }
         }
         catch(IOException ioe) {
             logger.error(
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)