diff options
author | George Hazan <george.hazan@gmail.com> | 2023-08-18 19:38:44 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-08-18 19:38:44 +0300 |
commit | 4cdf288cf2d1aefc01332db1bc73dc806df46be2 (patch) | |
tree | 0ed28b8e575481cdb9e83846bec7327288321a8a /plugins | |
parent | 1a9df16b008c77fc8200a7ed746b348e320627b4 (diff) |
NewStory: #3642 (редактирование порой не попадает в нужное место)
Diffstat (limited to 'plugins')
-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); |