Commit 792eb943 authored by jean-pierre charras's avatar jean-pierre charras

fixed bug 583939

parent 727f77db
This diff is collapsed.
update=14/3/2007-09:03:09 update=20/05/2010 10:19:24
version=1 version=1
last_client=pcbnew last_client=pcbnew
[cvpcb] [cvpcb]
NetITyp=0 NetITyp=0
NetIExt=.net NetIExt=.net
PkgIExt=.pkg PkgIExt=.pkg
NetDir= NetDir=
LibDir= LibDir=
NetType=0 NetType=0
[general] [general]
version=1 version=1
RootSch=sonde.sch RootSch=sonde.sch
BoardNm=sonde.brd BoardNm=sonde.brd
[eeschema] [eeschema]
version=1 version=1
LibDir= LibDir=
NetFmt=1 NetFmt=1
HPGLSpd=20 HPGLSpd=20
HPGLDm=15 HPGLDm=15
HPGLNum=1 HPGLNum=1
offX_A4=0 offX_A4=0
offY_A4=0 offY_A4=0
offX_A3=0 offX_A3=0
offY_A3=0 offY_A3=0
offX_A2=0 offX_A2=0
offY_A2=0 offY_A2=0
offX_A1=0 offX_A1=0
offY_A1=0 offY_A1=0
offX_A0=0 offX_A0=0
offY_A0=0 offY_A0=0
offX_A=0 offX_A=0
offY_A=0 offY_A=0
offX_B=0 offX_B=0
offY_B=0 offY_B=0
offX_C=0 offX_C=0
offY_C=0 offY_C=0
offX_D=0 offX_D=0
offY_D=0 offY_D=0
offX_E=0 offX_E=0
offY_E=0 offY_E=0
RptD_X=0 RptD_X=0
RptD_Y=100 RptD_Y=100
RptLab=1 RptLab=1
PenMin=20 PenMin=20
SimCmd= SimCmd=
UseNetN=0 UseNetN=0
[eeschema/libraries] [eeschema/libraries]
LibName1=power LibName1=power
LibName2=device LibName2=device
LibName3=conn LibName3=conn
LibName4=linear LibName4=linear
LibName5=regul LibName5=regul
LibName6=74xx LibName6=74xx
LibName7=cmos4000 LibName7=cmos4000
LibName8=adc-dac LibName8=adc-dac
LibName9=memory LibName9=memory
LibName10=xilinx LibName10=xilinx
LibName11=special LibName11=special
LibName12=microcontrollers LibName12=microcontrollers
LibName13=microchip LibName13=microchip
LibName14=microchip1 LibName14=microchip1
LibName15=analog_switches LibName15=analog_switches
LibName16=motorola LibName16=motorola
LibName17=intel LibName17=intel
LibName18=audio LibName18=audio
LibName19=interface LibName19=interface
LibName20=digital-audio LibName20=digital-audio
LibName21=philips LibName21=philips
LibName22=display LibName22=display
LibName23=cypress LibName23=cypress
LibName24=siliconi LibName24=siliconi
LibName25=contrib LibName25=contrib
[pcbnew] [pcbnew]
version=1 version=1
PadDrlX=320 PadDrlX=320
PadDimH=620 PadDimH=620
PadDimV=1220 PadDimV=900
PadForm=1 BoardThickness=630
PadMask=14745599 SgPcb45=1
ViaDiam=700 TxtPcbV=600
ViaDril=250 TxtPcbH=600
Isol=100 TxtModV=600
Countlayer=2 TxtModH=120
Lpiste=170 TxtModW=120
RouteTo=15 VEgarde=100
RouteBo=0 DrawLar=120
TypeVia=3 EdgeLar=120
Segm45=1 TxtLar=120
Racc45=1 MSegLar=120
Unite=0 LastNetListRead=
SegFill=1 [pcbnew/libraries]
SegAffG=0 LibDir=
NewAffG=1 LibName1=supports
PadFill=1 LibName2=connect
PadAffG=1 LibName3=discret
PadSNum=1 LibName4=pin_array
ModAffC=1 LibName5=divers
ModAffT=1 LibName6=libcms
PcbAffT=1 LibName7=display
SgPcb45=1 LibName8=valves
TxtPcbV=600
TxtPcbH=600
TxtModV=600
TxtModH=120
TxtModW=120
HPGLnum=1
HPGdiam=15
HPGLSpd=20
HPGLrec=2
HPGLorg=0
GERBmin=15
VEgarde=100
DrawLar=120
EdgeLar=120
TxtLar=120
MSegLar=120
ForPlot=1
WpenSer=10
UserGrX=0,01
UserGrY=0,01
UserGrU=1
DivGrPc=1
TimeOut=600
MaxLnkS=3
ShowRat=0
ShowMRa=1
[pcbnew/libraries]
LibDir=
LibName1=supports
LibName2=connect
LibName3=discret
LibName4=pin_array
LibName5=divers
LibName6=libcms
LibName7=display
LibName8=valves
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
EESchema-LIBRARY Version 2.3 Date: 09/02/2010 21:37:25 EESchema-LIBRARY Version 2.3 Date: 16/05/2010 20:17:13
# #
# +12V # +12V
# #
...@@ -909,6 +909,7 @@ $FPLIST ...@@ -909,6 +909,7 @@ $FPLIST
SM0603 SM0603
SM0805 SM0805
R?-* R?-*
SM1206
$ENDFPLIST $ENDFPLIST
DRAW DRAW
S -40 150 40 -150 0 1 12 N S -40 150 40 -150 0 1 12 N
......
This diff is collapsed.
...@@ -359,7 +359,6 @@ void WinEDA_SchematicFrame::EditComponentFootprint( SCH_COMPONENT* Cmp, wxDC* DC ...@@ -359,7 +359,6 @@ void WinEDA_SchematicFrame::EditComponentFootprint( SCH_COMPONENT* Cmp, wxDC* DC
{ {
wxString message; wxString message;
LIB_COMPONENT* Entry; LIB_COMPONENT* Entry;
bool wasEmpty = false;
if( Cmp == NULL ) if( Cmp == NULL )
return; return;
...@@ -371,19 +370,20 @@ void WinEDA_SchematicFrame::EditComponentFootprint( SCH_COMPONENT* Cmp, wxDC* DC ...@@ -371,19 +370,20 @@ void WinEDA_SchematicFrame::EditComponentFootprint( SCH_COMPONENT* Cmp, wxDC* DC
SCH_FIELD* TextField = Cmp->GetField( FOOTPRINT ); SCH_FIELD* TextField = Cmp->GetField( FOOTPRINT );
message = TextField->m_Text;
if( message.IsEmpty() )
wasEmpty = true;
if( Get_Message( _( "Footprint" ), _( "Component footprint" ), message, this ) ) if( Get_Message( _( "Footprint" ), _( "Component footprint" ), message, this ) )
message.Empty(); // allow the user to remove the value. return; // edition cancelled by user.
bool wasEmpty = false;
if( TextField->m_Text.IsEmpty() )
wasEmpty = true;
// save old cmp in undo list if not already in edit, or moving ... // save old cmp in undo list if not already in edit, or moving ...
if( Cmp->m_Flags == 0 ) if( Cmp->m_Flags == 0 )
SaveCopyInUndoList( Cmp, UR_CHANGED ); SaveCopyInUndoList( Cmp, UR_CHANGED );
Cmp->GetField( FOOTPRINT )->Draw( DrawPanel, DC, wxPoint( 0, 0 ), g_XorMode ); Cmp->GetField( FOOTPRINT )->Draw( DrawPanel, DC, wxPoint( 0, 0 ), g_XorMode );
// move the field if it was new. // Give a suitable position to the field if it was new,
// and therefore has no position already given.
if( wasEmpty && !message.IsEmpty() ) if( wasEmpty && !message.IsEmpty() )
{ {
Cmp->GetField( FOOTPRINT )->m_Pos = Cmp->GetField( REFERENCE )->m_Pos; Cmp->GetField( FOOTPRINT )->m_Pos = Cmp->GetField( REFERENCE )->m_Pos;
...@@ -400,13 +400,12 @@ void WinEDA_SchematicFrame::EditComponentFootprint( SCH_COMPONENT* Cmp, wxDC* DC ...@@ -400,13 +400,12 @@ void WinEDA_SchematicFrame::EditComponentFootprint( SCH_COMPONENT* Cmp, wxDC* DC
( -1 * Cmp->GetField( REFERENCE )->m_Size.y ); ( -1 * Cmp->GetField( REFERENCE )->m_Size.y );
Cmp->GetField( FOOTPRINT )->m_Orient = Cmp->GetField( REFERENCE )->m_Orient; Cmp->GetField( FOOTPRINT )->m_Orient = Cmp->GetField( REFERENCE )->m_Orient;
TextField->m_Text = message;
Cmp->GetField( FOOTPRINT )->Draw( DrawPanel, DC, wxPoint( 0, 0 ),
Cmp->m_Flags ? g_XorMode : GR_DEFAULT_DRAWMODE );
OnModify();
} }
TextField->m_Text = message;
Cmp->GetField( FOOTPRINT )->Draw( DrawPanel, DC, wxPoint( 0, 0 ),
Cmp->m_Flags ? g_XorMode : GR_DEFAULT_DRAWMODE );
OnModify();
Cmp->DisplayInfo( this ); Cmp->DisplayInfo( this );
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment