From c7869c38a519f09f31cface29ea09fe1a8b50328 Mon Sep 17 00:00:00 2001 From: Andy McFadden Date: Mon, 11 Jan 2016 10:53:32 -0800 Subject: [PATCH] Initialize fUseRTF to "true" The field wasn't being initialized, so if you did things in a certain way (open a .SDK as a ShrinkIt archive, double-click on the disk image, then view an AppleWorks AWP document), the flag might be initialized to "false" and you'd lose the formatting. --- reformat/ReformatBase.h | 3 ++- util/Util.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/reformat/ReformatBase.h b/reformat/ReformatBase.h index d52c28d..884d459 100644 --- a/reformat/ReformatBase.h +++ b/reformat/ReformatBase.h @@ -189,7 +189,8 @@ public: }; ReformatText() - : fLeftMargin(0), + : fUseRTF(true), + fLeftMargin(0), fRightMargin(0), fPointSize(8), fPreMultPointSize(8), diff --git a/util/Util.cpp b/util/Util.cpp index 9b9b0cd..b1f74dc 100644 --- a/util/Util.cpp +++ b/util/Util.cpp @@ -757,7 +757,7 @@ bool MatchSemicolonList(const CString set, const CString match) cp++; } - LOGI("--- No match for '%ls' in '%ls'", (LPCWSTR) match, (LPCWSTR) set); + LOGD("--- No match for '%ls' in '%ls'", (LPCWSTR) match, (LPCWSTR) set); return false; }