summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src/history_control.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/NewStory/src/history_control.cpp')
-rw-r--r--plugins/NewStory/src/history_control.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp
index 365ad3e8aa..d7102b980a 100644
--- a/plugins/NewStory/src/history_control.cpp
+++ b/plugins/NewStory/src/history_control.cpp
@@ -290,7 +290,7 @@ void NewstoryListData::Copy(bool bTextOnly)
res.Append(L"\r\n");
}
else { // copy text only
- CMStringW wszText(TplFormatString(p->getCopyTemplate(), p->hContact, p));
+ CMStringW wszText(p->formatString());
RemoveBbcodes(wszText);
res.Append(wszText);
}
@@ -497,7 +497,7 @@ int NewstoryListData::GetItemHeight(int index)
int width = rc.right - rc.left;
SIZE sz = { width - 6, 0 };
- MTextMeasure(hdc, &sz, (HANDLE)item->data);
+ MTextMeasure(hdc, &sz, item->data);
SelectObject(hdc, hOldFont);
ReleaseDC(m_hwnd, hdc);