From: jsimomaa Date: Mon, 21 Oct 2019 09:58:49 +0000 (+0300) Subject: Show detailed geometry on further zoom distance X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F82%2F3382%2F1;p=simantics%2Fdistrict.git Show detailed geometry on further zoom distance gitlab #35 Change-Id: I816e552364b0c62529a7296c033379cf558df037 (cherry picked from commit 27f0f6dd22d6826ae85ea89b1916d17ca9f83c41) --- diff --git a/org.simantics.district.network.ui/src/org/simantics/district/network/ui/nodes/DistrictNetworkEdgeNode.java b/org.simantics.district.network.ui/src/org/simantics/district/network/ui/nodes/DistrictNetworkEdgeNode.java index 00fe2184..8c4af387 100644 --- a/org.simantics.district.network.ui/src/org/simantics/district/network/ui/nodes/DistrictNetworkEdgeNode.java +++ b/org.simantics.district.network.ui/src/org/simantics/district/network/ui/nodes/DistrictNetworkEdgeNode.java @@ -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);