Added fullpath to EEschema plot output (for more wide Russian GUI forms)

This commit is contained in:
viknn 2010-03-22 08:18:53 +00:00
parent 4413221488
commit 7074f12074
1 changed files with 8 additions and 1 deletions

View File

@ -451,9 +451,16 @@ int WinEDA_SchematicFrame::BestZoom()
wxString WinEDA_SchematicFrame::GetUniqueFilenameForCurrentSheet()
{
wxFileName fn = g_RootSheet->GetFileName();
wxString filename = fn.GetName();
#ifndef KICAD_GOST
wxString filename = fn.GetName();
if( ( filename.Len() + m_CurrentSheet->PathHumanReadable().Len() ) < 50 )
#else
fn.ClearExt();
wxString filename = fn.GetFullPath();
if( ( filename.Len() + m_CurrentSheet->PathHumanReadable().Len() ) < 80 )
#endif
{
filename += m_CurrentSheet->PathHumanReadable();
filename.Replace( wxT( "/" ), wxT( "-" ) );