From 8b72ef9a396026c84c797029fd135370082526f4 Mon Sep 17 00:00:00 2001 From: sdottaka Date: Wed, 9 Jan 2013 06:15:21 +0900 Subject: [PATCH] fix the problem that incorrectly shows the warning 'file is readonly' when saving writable file. --- Src/MainFrm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/MainFrm.cpp b/Src/MainFrm.cpp index 162d8235f..aa7832956 100644 --- a/Src/MainFrm.cpp +++ b/Src/MainFrm.cpp @@ -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 (...) { -- 2.11.0