3D Viewer: fix broken check for write image permission check.

Fixes https://gitlab.com/kicad/code/kicad/issues/4081
This commit is contained in:
Wayne Stambaugh 2020-03-21 16:19:55 -04:00
parent 93b7eacfb2
commit d8e99dc5be
1 changed files with 4 additions and 1 deletions

View File

@ -24,6 +24,7 @@
#include <wx/colordlg.h>
#include <wx/colour.h>
#include <wx/filename.h>
#include <wx/string.h>
#include <wx/wupdlock.h>
#include <wx/clipbrd.h>
@ -637,7 +638,9 @@ void EDA_3D_VIEWER::takeScreenshot( wxCommandEvent& event )
fullFileName = m_defaultSaveScreenshotFileName.GetFullPath();
if( !wxFileName::IsFileWritable( fullFileName ) )
wxFileName fn = fullFileName;
if( !fn.IsDirWritable() )
{
wxString msg;