From 378def47341b2dc5770b7ee75fbca2338ff79286 Mon Sep 17 00:00:00 2001 From: Chris Pavlina Date: Tue, 6 Sep 2016 01:15:59 -0400 Subject: [PATCH] 3D viewer: suggest correct extension when saving image Fixes: lp:1620102 * https://bugs.launchpad.net/kicad/+bug/1620102 --- 3d-viewer/3d_viewer/eda_3d_viewer.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/3d-viewer/3d_viewer/eda_3d_viewer.h b/3d-viewer/3d_viewer/eda_3d_viewer.h index dafa7d11d1..686e82fdaf 100644 --- a/3d-viewer/3d_viewer/eda_3d_viewer.h +++ b/3d-viewer/3d_viewer/eda_3d_viewer.h @@ -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