[Kicad-developers] [PATCH] eeschema sheet pin width and height are swapped

2015-04-14 Thread Chris Pavlina

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 )
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] [PATCH] eeschema sheet pin width and height are swapped

2015-04-16 Thread jp charras
Le 15/04/2015 01:40, Chris Pavlina a écrit :
> Tiny little bug in eeschema: when you set the height of a sheet pin
> text, it actually sets the width, and vice versa.
> 

Fix committed in rev 5604. Thanks.


-- 
Jean-Pierre CHARRAS

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp