3D Viewer: fix broken check for write image permission check.
Fixes https://gitlab.com/kicad/code/kicad/issues/4081
(cherry picked from commit d8e99dc5be
)
This commit is contained in:
parent
4fb7ee02cd
commit
445bc75319
|
@ -22,11 +22,12 @@
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
#include <wx/colordlg.h>
|
||||||
* @file eda_3d_viewer.cpp
|
#include <wx/colour.h>
|
||||||
* @brief Implements a 3d viewer windows GUI
|
#include <wx/filename.h>
|
||||||
*/
|
#include <wx/string.h>
|
||||||
|
#include <wx/wupdlock.h>
|
||||||
|
#include <wx/clipbrd.h>
|
||||||
#include "eda_3d_viewer.h"
|
#include "eda_3d_viewer.h"
|
||||||
|
|
||||||
#include "../3d_viewer_id.h"
|
#include "../3d_viewer_id.h"
|
||||||
|
@ -990,7 +991,9 @@ void EDA_3D_VIEWER::takeScreenshot( wxCommandEvent& event )
|
||||||
|
|
||||||
fullFileName = m_defaultSaveScreenshotFileName.GetFullPath();
|
fullFileName = m_defaultSaveScreenshotFileName.GetFullPath();
|
||||||
|
|
||||||
if( !wxFileName::IsFileWritable( fullFileName ) )
|
wxFileName fn = fullFileName;
|
||||||
|
|
||||||
|
if( !fn.IsDirWritable() )
|
||||||
{
|
{
|
||||||
wxString msg;
|
wxString msg;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue