Adjusted level-of-detail thresholds for BOARD_ITEMs visibility

Fixes: lp:1801056
* https://bugs.launchpad.net/kicad/+bug/1801056
This commit is contained in:
Maciej Suminski 2018-11-03 00:33:34 +01:00
parent 69952a7b9f
commit 8d73cfef2a
3 changed files with 3 additions and 3 deletions

View File

@ -1008,7 +1008,7 @@ unsigned int MODULE::ViewGetLOD( int aLayer, KIGFX::VIEW* aView ) const
// Currently it is only for anchor layer // Currently it is only for anchor layer
if( aView->IsLayerVisible( layer ) ) if( aView->IsLayerVisible( layer ) )
return 30; return 3;
return std::numeric_limits<unsigned int>::max(); return std::numeric_limits<unsigned int>::max();
} }

View File

@ -1342,7 +1342,7 @@ unsigned int D_PAD::ViewGetLOD( int aLayer, KIGFX::VIEW* aView ) const
if( divisor == 0 ) if( divisor == 0 )
return HIDE; return HIDE;
return ( Millimeter2iu( 100 ) / divisor ); return ( Millimeter2iu( 20 ) / divisor );
} }
// Other layers are shown without any conditions // Other layers are shown without any conditions

View File

@ -770,7 +770,7 @@ unsigned int TRACK::ViewGetLOD( int aLayer, KIGFX::VIEW* aView ) const
// Netnames will be shown only if zoom is appropriate // Netnames will be shown only if zoom is appropriate
if( IsNetnameLayer( aLayer ) ) if( IsNetnameLayer( aLayer ) )
{ {
return ( 40000000 / ( m_Width + 1 ) ); return ( 4000000 / ( m_Width + 1 ) );
} }
// Other layers are shown without any conditions // Other layers are shown without any conditions