]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix spurious errors about removing nonexistent files in wxrc.
authorVáclav Slavík <vslavik@fastmail.fm>
Thu, 4 Apr 2013 16:15:13 +0000 (16:15 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Thu, 4 Apr 2013 16:15:13 +0000 (16:15 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73778 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

utils/wxrc/wxrc.cpp

index 8fc4ee0ac57945e9ff65ac90ab70f4b1bd9a3571..3b26f9d4c926fb3efd55e544f0260fe35f0bdfc7 100644 (file)
@@ -356,7 +356,8 @@ void XmlResApp::CompileRes()
 {
     wxArrayString files = PrepareTempFiles();
 
-    wxRemoveFile(parOutput);
+    if ( wxFileExists(parOutput) )
+        wxRemoveFile(parOutput);
 
     if (!retCode)
     {