changeset 547:95a7f9cb3d58

#131 Repaired a broken XPath expression for the chart attributes. flys-client/trunk@2056 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 06 Jun 2011 11:31:21 +0000
parents feaf6a8881ee
children aff225e07720
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/server/ChartInfoServiceImpl.java
diffstat 2 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Mon Jun 06 08:21:08 2011 +0000
+++ b/flys-client/ChangeLog	Mon Jun 06 11:31:21 2011 +0000
@@ -1,3 +1,10 @@
+2011-06-06  Ingo Weinzierl <ingo@intevation.de>
+
+	  flys/issue131 (Anzeige der Position bei großen Zahlen ungenau)
+
+	* src/main/java/de/intevation/flys/client/server/ChartInfoServiceImpl.java:
+	  Repaired a broken XPath expression for the chart attributes.
+
 2011-06-06  Ingo Weinzierl <ingo@intevation.de>
 
 	* src/main/java/de/intevation/flys/client/client/ui/chart/ZoomboxControl.java:
--- a/flys-client/src/main/java/de/intevation/flys/client/server/ChartInfoServiceImpl.java	Mon Jun 06 08:21:08 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/server/ChartInfoServiceImpl.java	Mon Jun 06 11:31:21 2011 +0000
@@ -97,12 +97,14 @@
             ArtifactNamespaceContext.NAMESPACE_URI,
             ArtifactNamespaceContext.NAMESPACE_PREFIX);
 
+        Element attr = ec.create("attributes");
         Element size = ec.create("size");
 
         ec.addAttr(size, "width", String.valueOf(width), true);
         ec.addAttr(size, "height", String.valueOf(height), true);
 
-        doc.appendChild(size);
+        attr.appendChild(size);
+        doc.appendChild(attr);
 
         return doc;
     }

http://dive4elements.wald.intevation.org