From 8d73cfef2a457d206e0ff6099a1d335ff89ede37 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Sat, 3 Nov 2018 00:33:34 +0100 Subject: [PATCH] Adjusted level-of-detail thresholds for BOARD_ITEMs visibility Fixes: lp:1801056 * https://bugs.launchpad.net/kicad/+bug/1801056 --- pcbnew/class_module.cpp | 2 +- pcbnew/class_pad.cpp | 2 +- pcbnew/class_track.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pcbnew/class_module.cpp b/pcbnew/class_module.cpp index f3c0eeaf24..9f658e60e9 100644 --- a/pcbnew/class_module.cpp +++ b/pcbnew/class_module.cpp @@ -1008,7 +1008,7 @@ unsigned int MODULE::ViewGetLOD( int aLayer, KIGFX::VIEW* aView ) const // Currently it is only for anchor layer if( aView->IsLayerVisible( layer ) ) - return 30; + return 3; return std::numeric_limits::max(); } diff --git a/pcbnew/class_pad.cpp b/pcbnew/class_pad.cpp index 755cb6df45..5b3f407ff0 100644 --- a/pcbnew/class_pad.cpp +++ b/pcbnew/class_pad.cpp @@ -1342,7 +1342,7 @@ unsigned int D_PAD::ViewGetLOD( int aLayer, KIGFX::VIEW* aView ) const if( divisor == 0 ) return HIDE; - return ( Millimeter2iu( 100 ) / divisor ); + return ( Millimeter2iu( 20 ) / divisor ); } // Other layers are shown without any conditions diff --git a/pcbnew/class_track.cpp b/pcbnew/class_track.cpp index a76d47ef01..81fc242672 100644 --- a/pcbnew/class_track.cpp +++ b/pcbnew/class_track.cpp @@ -770,7 +770,7 @@ unsigned int TRACK::ViewGetLOD( int aLayer, KIGFX::VIEW* aView ) const // Netnames will be shown only if zoom is appropriate if( IsNetnameLayer( aLayer ) ) { - return ( 40000000 / ( m_Width + 1 ) ); + return ( 4000000 / ( m_Width + 1 ) ); } // Other layers are shown without any conditions