Don't bitmap multi-line SCH_TEXT.
The linespacing isn't even close and multi-line text is also likely to have longer lines which makes the X offset get way off too.
This commit is contained in:
parent
6b3ed89248
commit
3969045009
|
@ -1856,7 +1856,9 @@ void SCH_PAINTER::draw( const SCH_TEXT *aText, int aLayer )
|
||||||
attrs.m_Angle = aText->GetDrawRotation();
|
attrs.m_Angle = aText->GetDrawRotation();
|
||||||
attrs.m_StrokeWidth = getTextThickness( aText, drawingShadows );
|
attrs.m_StrokeWidth = getTextThickness( aText, drawingShadows );
|
||||||
|
|
||||||
if( nonCached( aText ) && underLODThreshold( aText->GetTextHeight() ) )
|
if( nonCached( aText )
|
||||||
|
&& underLODThreshold( aText->GetTextHeight() )
|
||||||
|
&& !shownText.Contains( wxT( "\n" ) ) )
|
||||||
{
|
{
|
||||||
bitmapText( shownText, aText->GetDrawPos() + text_offset, attrs );
|
bitmapText( shownText, aText->GetDrawPos() + text_offset, attrs );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue