Replaced wxFileName::FileExists with wxFileExists
This commit is contained in:
parent
a34b60072f
commit
bf9eea070e
|
@ -665,7 +665,7 @@ void StyleDialog::OnStyleWebReport ( wxCommandEvent& event )
|
||||||
ofs.close();
|
ofs.close();
|
||||||
|
|
||||||
// display file in browser
|
// display file in browser
|
||||||
if ( !wxFileName::FileExists ( tempNameWide ) )
|
if ( !wxFileExists ( tempNameWide ) )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
wxLaunchDefaultBrowser ( tempNameWide );
|
wxLaunchDefaultBrowser ( tempNameWide );
|
||||||
|
@ -731,7 +731,7 @@ void StyleDialog::OnStyleWebSummary ( wxCommandEvent& event )
|
||||||
ofs.close();
|
ofs.close();
|
||||||
|
|
||||||
// display file in browser
|
// display file in browser
|
||||||
if ( !wxFileName::FileExists ( tempNameWide ) )
|
if ( !wxFileExists ( tempNameWide ) )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
wxLaunchDefaultBrowser ( tempNameWide );
|
wxLaunchDefaultBrowser ( tempNameWide );
|
||||||
|
|
|
@ -3006,7 +3006,7 @@ bool MyFrame::openFile ( wxString& fileName, bool largeFile )
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if ( !wxFileName::FileExists ( fileName ) )
|
if ( !wxFileExists ( fileName ) )
|
||||||
{
|
{
|
||||||
wxString message;
|
wxString message;
|
||||||
message.Printf ( _ ( "Cannot open %s." ), fileName.c_str() );
|
message.Printf ( _ ( "Cannot open %s." ), fileName.c_str() );
|
||||||
|
@ -4175,7 +4175,7 @@ void MyFrame::OnXslt ( wxCommandEvent& event )
|
||||||
|
|
||||||
path = PathResolver::run ( path, doc->getFullFileName() );
|
path = PathResolver::run ( path, doc->getFullFileName() );
|
||||||
|
|
||||||
if ( !wxFileName::FileExists ( path ) )
|
if ( !wxFileExists ( path ) )
|
||||||
{
|
{
|
||||||
if ( !path.empty() )
|
if ( !path.empty() )
|
||||||
{
|
{
|
||||||
|
|
|
@ -113,7 +113,7 @@ void XMLCALL XmlCopyImg::start ( void *data,
|
||||||
wideFile = fn.GetFullPath();
|
wideFile = fn.GetFullPath();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !wxFileName::FileExists ( wideFile ) )
|
if ( !wxFileExists ( wideFile ) )
|
||||||
{
|
{
|
||||||
wideDestination = pd->blankImage;
|
wideDestination = pd->blankImage;
|
||||||
value = "images/blank.jpg";
|
value = "images/blank.jpg";
|
||||||
|
@ -166,7 +166,7 @@ void XMLCALL XmlCopyImg::start ( void *data,
|
||||||
fn.MakeAbsolute ( pd->path );
|
fn.MakeAbsolute ( pd->path );
|
||||||
wideFile = fn.GetFullPath();
|
wideFile = fn.GetFullPath();
|
||||||
}
|
}
|
||||||
if ( !wxFileName::FileExists ( wideFile ) )
|
if ( !wxFileExists ( wideFile ) )
|
||||||
{
|
{
|
||||||
value = "images/blank.jpg";
|
value = "images/blank.jpg";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue