Pcbnew: Try to find a better workaround for zone fiill bug (crash or bad fil areasl in very rare cases).

pcbnew+Eeschema: Fix a very minor bug: filename not displayed in frame reference.
This commit is contained in:
jean-pierre charras
2013-02-09 21:03:20 +01:00
parent 3af054c702
commit 42c2399af7
7 changed files with 50 additions and 38 deletions
+2 -3
View File
@@ -1472,13 +1472,12 @@ void EDA_DRAW_FRAME::TraceWorkSheet( wxDC* aDC, wxSize& aSz, wxPoint& aLT, wxPoi
case WS_FILENAME:
{
wxString fname, fext;
wxFileName::SplitPath( aFlNm, (wxString*) NULL, &fname, &fext );
wxFileName fn( aFlNm );
if( WsItem->m_Legende )
msg = WsItem->m_Legende;
msg << fname << wxT( "." ) << fext;
msg << fn.GetFullName();
DrawGraphicText( m_canvas, aDC, pos, aClr1,
msg, TEXT_ORIENT_HORIZ, size,
GR_TEXT_HJUSTIFY_LEFT, GR_TEXT_VJUSTIFY_CENTER,