symbol_editor_control: fix incorrect bounding in SVG export.

Fixes #13093
https://gitlab.com/kicad/code/kicad/issues/13093
This commit is contained in:
jean-pierre charras 2022-12-07 13:18:10 +01:00
parent cdeb539254
commit ecfd74c1be
1 changed files with 2 additions and 2 deletions

View File

@ -457,8 +457,8 @@ int SYMBOL_EDITOR_CONTROL::ExportSymbolAsSVG( const TOOL_EVENT& aEvent )
editFrame->GetConvert() ).GetSize();
// Add a small margin to the plot bounding box
pageTemp.SetWidthMils( int( symbolSize.x * 1.2 ) );
pageTemp.SetHeightMils( int( symbolSize.y * 1.2 ) );
pageTemp.SetWidthMils( Iu2Mils( symbolSize.x * 1.2 ) );
pageTemp.SetHeightMils( Iu2Mils( symbolSize.y * 1.2 ) );
editFrame->GetScreen()->SetPageSettings( pageTemp );
editFrame->SVGPlotSymbol( fullFileName );