From: jsimomaa Date: Fri, 4 Oct 2019 07:54:56 +0000 (+0300) Subject: Change zoom level from 15 to 17 for static infos X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;ds=inline;h=refs%2Fchanges%2F13%2F3313%2F1;hp=45d87b504f16ba0fb8e6c16cd4c8e4efe7af049e;p=simantics%2Fdistrict.git Change zoom level from 15 to 17 for static infos gitlab #47 Change-Id: Ic43cd87a4f34b97d00f601db2e48280e6488ae31 (cherry picked from commit db03c6473f55b3ed34d3158376f9af267d37b22c) --- diff --git a/org.simantics.district.network.ui/src/org/simantics/district/network/ui/nodes/DistrictNetworkStaticInfoNode.java b/org.simantics.district.network.ui/src/org/simantics/district/network/ui/nodes/DistrictNetworkStaticInfoNode.java index b86d0acb..94b4e896 100644 --- a/org.simantics.district.network.ui/src/org/simantics/district/network/ui/nodes/DistrictNetworkStaticInfoNode.java +++ b/org.simantics.district.network.ui/src/org/simantics/district/network/ui/nodes/DistrictNetworkStaticInfoNode.java @@ -59,7 +59,7 @@ public class DistrictNetworkStaticInfoNode extends G2DNode implements DeferredNo baseTransform.preConcatenate(oldTransform); int zoomLevel = MapScalingTransform.zoomLevel(baseTransform); - if (zoomLevel < 15) + if (zoomLevel < 17) return; Font oldFont = g.getFont();