diff --git a/pcbnew/pcb_painter.cpp b/pcbnew/pcb_painter.cpp index 8c0984631d..0344e77f62 100644 --- a/pcbnew/pcb_painter.cpp +++ b/pcbnew/pcb_painter.cpp @@ -738,7 +738,9 @@ void PCB_PAINTER::draw( const PCB_TRACK* aTrack, int aLayer ) VECTOR2I textPosition = VECTOR2D( start ) * static_cast( num_names - ii ) / ( num_names + 1 ) + VECTOR2D( end ) * static_cast( ii + 1 ) / ( num_names + 1 ); - m_gal->BitmapText( netName, textPosition, textOrientation ); + + if( clipBox.Contains( textPosition ) ) + m_gal->BitmapText( netName, textPosition, textOrientation ); } return;