diff --git a/src/styledialog.cpp b/src/styledialog.cpp index 1b39725..e1c64d5 100644 --- a/src/styledialog.cpp +++ b/src/styledialog.cpp @@ -665,7 +665,7 @@ void StyleDialog::OnStyleWebReport ( wxCommandEvent& event ) ofs.close(); // display file in browser - if ( !wxFileName::FileExists ( tempNameWide ) ) + if ( !wxFileExists ( tempNameWide ) ) return; wxLaunchDefaultBrowser ( tempNameWide ); @@ -731,7 +731,7 @@ void StyleDialog::OnStyleWebSummary ( wxCommandEvent& event ) ofs.close(); // display file in browser - if ( !wxFileName::FileExists ( tempNameWide ) ) + if ( !wxFileExists ( tempNameWide ) ) return; wxLaunchDefaultBrowser ( tempNameWide ); diff --git a/src/xmlcopyeditor.cpp b/src/xmlcopyeditor.cpp index 30b4c17..ac26bc4 100644 --- a/src/xmlcopyeditor.cpp +++ b/src/xmlcopyeditor.cpp @@ -3006,7 +3006,7 @@ bool MyFrame::openFile ( wxString& fileName, bool largeFile ) } #endif - if ( !wxFileName::FileExists ( fileName ) ) + if ( !wxFileExists ( fileName ) ) { wxString message; message.Printf ( _ ( "Cannot open %s." ), fileName.c_str() ); @@ -4175,7 +4175,7 @@ void MyFrame::OnXslt ( wxCommandEvent& event ) path = PathResolver::run ( path, doc->getFullFileName() ); - if ( !wxFileName::FileExists ( path ) ) + if ( !wxFileExists ( path ) ) { if ( !path.empty() ) { diff --git a/src/xmlcopyimg.cpp b/src/xmlcopyimg.cpp index 1dabc10..5727bfd 100644 --- a/src/xmlcopyimg.cpp +++ b/src/xmlcopyimg.cpp @@ -113,7 +113,7 @@ void XMLCALL XmlCopyImg::start ( void *data, wideFile = fn.GetFullPath(); } - if ( !wxFileName::FileExists ( wideFile ) ) + if ( !wxFileExists ( wideFile ) ) { wideDestination = pd->blankImage; value = "images/blank.jpg"; @@ -166,7 +166,7 @@ void XMLCALL XmlCopyImg::start ( void *data, fn.MakeAbsolute ( pd->path ); wideFile = fn.GetFullPath(); } - if ( !wxFileName::FileExists ( wideFile ) ) + if ( !wxFileExists ( wideFile ) ) { value = "images/blank.jpg"; }