From ecfd74c1be1d36762c103f76fb574abf1f4465aa Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Wed, 7 Dec 2022 13:18:10 +0100 Subject: [PATCH] symbol_editor_control: fix incorrect bounding in SVG export. Fixes #13093 https://gitlab.com/kicad/code/kicad/issues/13093 --- eeschema/tools/symbol_editor_control.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eeschema/tools/symbol_editor_control.cpp b/eeschema/tools/symbol_editor_control.cpp index e942103fd4..e4132f9e3d 100644 --- a/eeschema/tools/symbol_editor_control.cpp +++ b/eeschema/tools/symbol_editor_control.cpp @@ -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 );