Pcbnew, PCB_PAINTER: very minor enhancement for commit 2751c677
This commit is contained in:
parent
e0c2531f53
commit
4db4a0a46f
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue