diff options
author | George Hazan <george.hazan@gmail.com> | 2023-10-31 15:51:37 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-10-31 15:51:37 +0300 |
commit | 5e00a83c7428607e73a852f95c55756ae9d51882 (patch) | |
tree | d788541a9ec1988d4070bebab407ec9ec8e7b69a /plugins/NewStory/src/templates.cpp | |
parent | 5b2fa6f292b910409066b2ca748b3f7b8ff020b1 (diff) |
NewStory: old perversion with temporary contact & event exterminated
Diffstat (limited to 'plugins/NewStory/src/templates.cpp')
-rw-r--r-- | plugins/NewStory/src/templates.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/NewStory/src/templates.cpp b/plugins/NewStory/src/templates.cpp index 6721ee39cc..44bcb81c22 100644 --- a/plugins/NewStory/src/templates.cpp +++ b/plugins/NewStory/src/templates.cpp @@ -91,7 +91,7 @@ static void AppendUnicodeToBuffer(CMStringA &buf, const wchar_t *p) } } -CMStringA ItemData::formatRtf() +CMStringA ItemData::formatRtf(const wchar_t *pwszStr) { CMStringA buf; buf.Append("{\\rtf1\\ansi\\deff0"); @@ -111,7 +111,7 @@ CMStringA ItemData::formatRtf() ReleaseDC(nullptr, hdc); buf.AppendFormat("\\uc1\\pard \\cf0\\f0\\b0\\i0\\fs%d ", 2 * abs(F.lf.lfHeight) * 74 / logPixelSY); - AppendUnicodeToBuffer(buf, formatString()); + AppendUnicodeToBuffer(buf, (pwszStr) ? pwszStr : formatString()); buf.Append("}"); // Netlib_Logf(0, buf); |