diff --git a/pcbnew/pad.cpp b/pcbnew/pad.cpp index f8c7d4a44c..734e05aa7c 100644 --- a/pcbnew/pad.cpp +++ b/pcbnew/pad.cpp @@ -110,7 +110,7 @@ PAD::PAD( FOOTPRINT* parent ) : for( PCB_LAYER_ID layer : LAYER_RANGE( F_Cu, B_Cu, BoardCopperLayerCount() ) ) m_zoneLayerOverrides[layer] = ZLO_NONE; - m_lastGalZoolLevel = 0.0; + m_lastGalZoomLevel = 0.0; } @@ -1793,10 +1793,10 @@ double PAD::ViewGetLOD( int aLayer, const KIGFX::VIEW* aView ) const // LAYER_PAD_HOLEWALLS shape rebuild if( aLayer == LAYER_PAD_HOLEWALLS ) { - if( aView->GetGAL()->GetZoomFactor() != m_lastGalZoolLevel ) + if( aView->GetGAL()->GetZoomFactor() != m_lastGalZoomLevel ) { aView->Update( this, KIGFX::REPAINT ); - m_lastGalZoolLevel = aView->GetGAL()->GetZoomFactor(); + m_lastGalZoomLevel = aView->GetGAL()->GetZoomFactor(); } } diff --git a/pcbnew/pad.h b/pcbnew/pad.h index 9b74e0fe1a..ea4d31aaa6 100644 --- a/pcbnew/pad.h +++ b/pcbnew/pad.h @@ -950,7 +950,7 @@ private: mutable int m_effectiveBoundingRadius; // Last zoom level used to draw the pad: the LAYER_PAD_HOLEWALLS layer shape // depend on the zoom level. So keep trace on the last used zoom level - mutable double m_lastGalZoolLevel; + mutable double m_lastGalZoomLevel; int m_subRatsnest; // Variable used to handle subnet (block) number in // ratsnest computations