Browse Source

Pcbnew, PCB_PAINTER: very minor enhancement for commit 2751c677

pull/16/head
jean-pierre charras 5 years ago
parent
commit
4db4a0a46f
  1. 4
      pcbnew/class_module.cpp

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

Loading…
Cancel
Save