From: Václav Slavík Date: Thu, 4 Apr 2013 16:15:13 +0000 (+0000) Subject: Fix spurious errors about removing nonexistent files in wxrc. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/3c4845b41859f5894e4cfc7f66b7672d30662fd4 Fix spurious errors about removing nonexistent files in wxrc. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73778 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/utils/wxrc/wxrc.cpp b/utils/wxrc/wxrc.cpp index 8fc4ee0ac5..3b26f9d4c9 100644 --- a/utils/wxrc/wxrc.cpp +++ b/utils/wxrc/wxrc.cpp @@ -356,7 +356,8 @@ void XmlResApp::CompileRes() { wxArrayString files = PrepareTempFiles(); - wxRemoveFile(parOutput); + if ( wxFileExists(parOutput) ) + wxRemoveFile(parOutput); if (!retCode) {