]> gerrit.simantics Code Review - simantics/district.git/commitdiff
Show detailed geometry on further zoom distance 82/3382/1
authorjsimomaa <jani.simomaa@gmail.com>
Mon, 21 Oct 2019 09:58:49 +0000 (12:58 +0300)
committerJani Simomaa <jani.simomaa@semantum.fi>
Mon, 21 Oct 2019 10:14:08 +0000 (10:14 +0000)
gitlab #35

Change-Id: I816e552364b0c62529a7296c033379cf558df037
(cherry picked from commit 27f0f6dd22d6826ae85ea89b1916d17ca9f83c41)

org.simantics.district.network.ui/src/org/simantics/district/network/ui/nodes/DistrictNetworkEdgeNode.java

index 00fe2184e49dcc53ba77fa922e426b1e4888562c..8c4af387cee34a288e888e0c03d74c943198424b 100644 (file)
@@ -95,7 +95,7 @@ public class DistrictNetworkEdgeNode extends G2DParentNode implements ISelection
             }
 
             int zoomLevel = (Integer) g2d.getRenderingHint(DistrictRenderingHints.KEY_VIEW_ZOOM_LEVEL);
-            path = calculatePath(edge, path, zoomLevel > 15);
+            path = calculatePath(edge, path, zoomLevel > 13);
     
             if (isSelected()) {
                 g2d.setColor(SELECTION_COLOR);