OSDN Git Service

fix the problem that incorrectly shows the warning 'file is readonly' when saving...
authorsdottaka <none@none>
Tue, 8 Jan 2013 21:15:21 +0000 (06:15 +0900)
committersdottaka <none@none>
Tue, 8 Jan 2013 21:15:21 +0000 (06:15 +0900)
Src/MainFrm.cpp

index 162d823..aa78329 100644 (file)
@@ -943,7 +943,7 @@ int CMainFrame::HandleReadonlySave(String& strSavePath, BOOL bMultiFile,
                TFile file(strSavePath);
                bFileExists = file.exists();
                if (bFileExists)
-                       bFileRO = file.canWrite();
+                       bFileRO = !file.canWrite();
        }
        catch (...)
        {