diff options
Diffstat (limited to 'plugins/NewStory')
-rw-r--r-- | plugins/NewStory/src/history_array.cpp | 1 | ||||
-rw-r--r-- | plugins/NewStory/src/history_control.cpp | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/NewStory/src/history_array.cpp b/plugins/NewStory/src/history_array.cpp index 9f53abd1df..f168335562 100644 --- a/plugins/NewStory/src/history_array.cpp +++ b/plugins/NewStory/src/history_array.cpp @@ -313,6 +313,7 @@ void ItemData::setText() data = MTextCreateEx(htuLog, this->wtext, MTEXT_FLG_WCHAR | MTEXT_FLG_RTF); else data = MTextCreateW(htuLog, Proto_GetBaseAccountName(hContact), ptrW(TplFormatString(getTemplate(), hContact, this))); + savedHeight = -1; } // Array diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp index c358b918b5..7c33868ffe 100644 --- a/plugins/NewStory/src/history_control.cpp +++ b/plugins/NewStory/src/history_control.cpp @@ -383,8 +383,7 @@ int NewstoryListData::GetItemHeight(int index) RECT rc; GetClientRect(hwnd, &rc); int width = rc.right - rc.left; - SIZE sz; - sz.cx = width - 6; + SIZE sz = { width - 6, 0 }; MTextMeasure(hdc, &sz, (HANDLE)item->data); SelectObject(hdc, hOldFont); |