diff src/java/de/intevation/mxd/writer/LineStyleWriter.java @ 147:03daf386f19a

Manage symbol name for line symbols.
author vc11884admin@VC11884.win.bsh.de
date Wed, 29 Jun 2011 17:36:07 +0200
parents b2c5a66022f1
children 9fd61f4ac0e3
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/writer/LineStyleWriter.java	Mon Jun 27 18:22:21 2011 +0200
+++ b/src/java/de/intevation/mxd/writer/LineStyleWriter.java	Wed Jun 29 17:36:07 2011 +0200
@@ -90,10 +90,10 @@
         if(type.equals("marker")) {
             SymbolWriter sw = new SymbolWriter(this.map, this.cl);
             sw.write(symbolElement);
+            String name = symbolElement.getAttribute("name");
+            style.setSymbolByName(map, name);
+            symbolObj sym = symbolSet.getSymbolByName(name);
         }
-        String name = symbolElement.getAttribute("name");
-        style.setSymbolByName(map, name);
-        symbolObj sym = symbolSet.getSymbolByName(name);
 
         //The following lines are for dashed and/or dotted lines.
         if(symbolElement.hasAttribute("linestyle")) {
@@ -158,10 +158,6 @@
                 logger.warn("Could not write PATTERN.");
             }
         }
-
-
-
-
         return false;
     }
 }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)