From 4db4a0a46fe8509405e12a1a5e1e7d182720e9b7 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Mon, 21 Sep 2020 08:56:53 +0200 Subject: [PATCH] Pcbnew, PCB_PAINTER: very minor enhancement for commit 2751c677 --- pcbnew/class_module.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pcbnew/class_module.cpp b/pcbnew/class_module.cpp index 0ff56c183e..c9aa93d451 100644 --- a/pcbnew/class_module.cpp +++ b/pcbnew/class_module.cpp @@ -1095,8 +1095,10 @@ unsigned int MODULE::ViewGetLOD( int aLayer, KIGFX::VIEW* aView ) const // Currently this is only pertinent for the anchor layer; everything else is drawn from the // children. + #define MINIMAL_ZOOM_LEVEL_FOR_VISIBILITY 0.6 + if( aView->IsLayerVisible( layer ) ) - return 3; + return MINIMAL_ZOOM_LEVEL_FOR_VISIBILITY; return std::numeric_limits::max(); }