3D viewer: suggest correct extension when saving image

Fixes: lp:1620102
* https://bugs.launchpad.net/kicad/+bug/1620102
This commit is contained in:
Chris Pavlina 2016-09-06 01:15:59 -04:00
parent 20aca7d7bb
commit 378def4734
1 changed files with 5 additions and 1 deletions

View File

@ -75,7 +75,11 @@ class EDA_3D_VIEWER : public KIWAY_PLAYER
* Set the default file name (eg: to be suggested to a screenshot)
* @param aFn = file name to assign
*/
void SetDefaultFileName( const wxString &aFn ) { m_defaultFileName = aFn; }
void SetDefaultFileName( const wxString &aFn )
{
wxFileName fn( aFn );
m_defaultFileName = fn.GetName();
}
/**
* Function GetDefaultFileName