]> gerrit.simantics Code Review - simantics/district.git/commitdiff
Do not copy elevation to target but use existing elevation 60/2860/1
authorjsimomaa <jani.simomaa@gmail.com>
Mon, 22 Apr 2019 17:56:25 +0000 (20:56 +0300)
committerjsimomaa <jani.simomaa@gmail.com>
Mon, 22 Apr 2019 17:56:25 +0000 (20:56 +0300)
gitlab #43
APROS-15307

Change-Id: I3cbc97ec442d7dda453093b1dd370413339e5437

org.simantics.district.network.ui/src/org/simantics/district/network/ui/contributions/PasteDistrictVertexHandler.java

index 0ad64469460ae4682ed7ad0e81de9c379377e4ff..c9aa0f3cfc4c04c95cc9b1faebbf2c9fa03d31f4 100644 (file)
@@ -276,7 +276,7 @@ public class PasteDistrictVertexHandler {
     private static Resource attributeMappingToVertexAttribute(ReadGraph graph, DistrictNetworkResource DN, Resource attribute) throws DatabaseException {
        Resource attr = null;
         if (attribute.equals(DN.Mapping_VertexMapping_ElevationAttribute))
-            attr = DN.Vertex_HasElevation;
+            attr = null; // ignore elevation as well
         else if (attribute.equals(DN.Mapping_VertexMapping_AddressAttribute))
                attr = DN.Vertex_HasAddress;
         else if (attribute.equals(DN.Mapping_VertexMapping_DeltaPressureAttribute))