diff options
Diffstat (limited to 'plugins/NewStory/src/history_array.cpp')
-rw-r--r-- | plugins/NewStory/src/history_array.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/NewStory/src/history_array.cpp b/plugins/NewStory/src/history_array.cpp index 3eb986cd88..cbffbb1f1d 100644 --- a/plugins/NewStory/src/history_array.cpp +++ b/plugins/NewStory/src/history_array.cpp @@ -190,7 +190,7 @@ ItemData* ItemData::checkPrevGC(ItemData *pPrev) void ItemData::checkCreate(HWND hwnd) { if (data == nullptr) { - setText(); + setTextAndHwnd(hwnd); MTextSetParent(data, hwnd); MTextActivate(data, true); } @@ -479,6 +479,12 @@ void ItemData::setText() savedHeight = -1; } +void ItemData::setTextAndHwnd(HWND hwnd) +{ + data = MTextCreateEx2(hwnd, htuLog, formatRtf().GetBuffer(), MTEXT_FLG_RTF); + savedHeight = -1; +} + // Array HistoryArray::HistoryArray() : pages(50), |