Eeschema: fix bug that crashes libedit (after creating a new pin, repeat it (insert key), delete the new repeated pin and try to repeat)

This commit is contained in:
jean-pierre charras 2011-07-07 14:54:02 +02:00
parent a32b974fcb
commit 87e220e1fc
4 changed files with 6 additions and 4 deletions

View File

@ -6,7 +6,7 @@
#endif #endif
#ifndef KICAD_BUILD_VERSION #ifndef KICAD_BUILD_VERSION
#define KICAD_BUILD_VERSION "(2011-07-05)" #define KICAD_BUILD_VERSION "(2011-07-07)"
#endif #endif

View File

@ -714,6 +714,7 @@ void LIB_EDIT_FRAME::Process_Special_Functions( wxCommandEvent& event )
( (LIB_POLYLINE*) m_drawItem )->DeleteSegment( GetScreen()->GetCrossHairPosition( true ) ); ( (LIB_POLYLINE*) m_drawItem )->DeleteSegment( GetScreen()->GetCrossHairPosition( true ) );
m_drawItem->Draw( DrawPanel, &dc, wxPoint( 0, 0 ), -1, g_XorMode, NULL, DefaultTransform ); m_drawItem->Draw( DrawPanel, &dc, wxPoint( 0, 0 ), -1, g_XorMode, NULL, DefaultTransform );
m_drawItem->SetFlags( oldFlags ); m_drawItem->SetFlags( oldFlags );
m_lastDrawItem = NULL;
break; break;
} }
@ -1212,6 +1213,7 @@ void LIB_EDIT_FRAME::deleteItem( wxDC* aDC )
} }
m_drawItem = NULL; m_drawItem = NULL;
m_lastDrawItem = NULL;
OnModify(); OnModify();
DrawPanel->CrossHairOn( aDC ); DrawPanel->CrossHairOn( aDC );
} }

View File

@ -17,7 +17,7 @@
; General Product Description Definitions ; General Product Description Definitions
!define PRODUCT_NAME "KiCad" !define PRODUCT_NAME "KiCad"
!define PRODUCT_VERSION "2011.07.05" !define PRODUCT_VERSION "2011.07.07"
!define PRODUCT_WEB_SITE "http://iut-tice.ujf-grenoble.fr/kicad/" !define PRODUCT_WEB_SITE "http://iut-tice.ujf-grenoble.fr/kicad/"
!define SOURCEFORGE_WEB_SITE "http://kicad.sourceforge.net/" !define SOURCEFORGE_WEB_SITE "http://kicad.sourceforge.net/"
!define COMPANY_NAME "" !define COMPANY_NAME ""

View File

@ -1,4 +1,4 @@
release version: release version:
2011 jul 05 2011 jul 07
files (.zip,.tgz): files (.zip,.tgz):
kicad-2011-07-05 kicad-2011-07-07