← Back to team overview

kicad-developers team mailing list archive

[PATCH] eeschema sheet pin width and height are swapped

 

Tiny little bug in eeschema: when you set the height of a sheet pin text, it actually sets the width, and vice versa.

diff --git a/eeschema/sheetlab.cpp b/eeschema/sheetlab.cpp
index 9f90792..8a10319 100644
--- a/eeschema/sheetlab.cpp
+++ b/eeschema/sheetlab.cpp
@@ -94,8 +94,8 @@ int SCH_EDIT_FRAME::EditSheetPin( SCH_SHEET_PIN* aSheetPin, wxDC* aDC )
     }
 
     aSheetPin->SetText( dlg.GetLabelName() );
-    aSheetPin->SetSize( wxSize( ValueFromString( g_UserUnit, dlg.GetTextHeight() ),
-                                ValueFromString( g_UserUnit, dlg.GetTextWidth() ) ) );
+    aSheetPin->SetSize( wxSize( ValueFromString( g_UserUnit, dlg.GetTextWidth() ),
+                                ValueFromString( g_UserUnit, dlg.GetTextHeight() ) ) );
     aSheetPin->SetShape( dlg.GetConnectionType() );
 
     if( aDC )

Follow ups