diff backend/src/main/java/org/dive4elements/river/importer/parsers/WstParser.java @ 6370:55a2f9e0d6ab double-precision

fix official lines import
author Sascha L. Teichmann <teichmann@intevation.de>
date Tue, 18 Jun 2013 19:33:40 +0200
parents 224d7c4b5291
children 128ab9169db1
line wrap: on
line diff
--- a/backend/src/main/java/org/dive4elements/river/importer/parsers/WstParser.java	Tue Jun 18 19:32:31 2013 +0200
+++ b/backend/src/main/java/org/dive4elements/river/importer/parsers/WstParser.java	Tue Jun 18 19:33:40 2013 +0200
@@ -97,7 +97,12 @@
 
         log.info("Parsing WST file '" + file + "'");
 
-        wst = new ImportWst(file.getName());
+	if (wst == null) {
+	    wst = new ImportWst(file.getName());
+	}
+	else {
+	    wst.setDescription(file.getName());
+	}
 
         LineNumberReader in =
             new LineNumberReader(

http://dive4elements.wald.intevation.org