3D viewer: suggest correct extension when saving image
Fixes: lp:1620102 * https://bugs.launchpad.net/kicad/+bug/1620102
This commit is contained in:
parent
20aca7d7bb
commit
378def4734
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue