Pcbnew, PCB_PAINTER: very minor enhancement for commit 2751c677

This commit is contained in:
jean-pierre charras 2020-09-21 08:56:53 +02:00
parent e0c2531f53
commit 4db4a0a46f
1 changed files with 3 additions and 1 deletions

View File

@ -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<unsigned int>::max();
}