From cbae3129961119ea4415ec2643bb62f04be47dcf Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 16 Aug 2020 18:19:00 +0300 Subject: fixes #2538 (NewStory: add stickers support to message log and history) --- libs/mTextControl/src/textcontrol.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/mTextControl/src/textcontrol.cpp') diff --git a/libs/mTextControl/src/textcontrol.cpp b/libs/mTextControl/src/textcontrol.cpp index c62148269b..d58fd0e1c1 100644 --- a/libs/mTextControl/src/textcontrol.cpp +++ b/libs/mTextControl/src/textcontrol.cpp @@ -76,7 +76,7 @@ LRESULT CALLBACK MTextControlWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM int textLength = GetWindowTextLength(hwnd); data->text = new wchar_t[textLength + 1]; GetWindowText(hwnd, data->text, textLength + 1); - data->mtext = MTextCreateW(data->htu, data->text); + data->mtext = MTextCreateW(data->htu, 0, data->text); MTextSetParent(data->mtext, hwnd); -- cgit v1.2.3