From 17895ec37e6e958d9dec963484091f38a3329443 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 10 May 2020 12:39:41 +0300 Subject: mTextControl related code cleaning --- libs/mTextControl/src/textcontrol.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libs/mTextControl/src/textcontrol.cpp') diff --git a/libs/mTextControl/src/textcontrol.cpp b/libs/mTextControl/src/textcontrol.cpp index a7069ae88c..c62148269b 100644 --- a/libs/mTextControl/src/textcontrol.cpp +++ b/libs/mTextControl/src/textcontrol.cpp @@ -78,8 +78,7 @@ LRESULT CALLBACK MTextControlWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM GetWindowText(hwnd, data->text, textLength + 1); data->mtext = MTextCreateW(data->htu, data->text); - RECT rc; GetClientRect(hwnd, &rc); - MTextSetParent(data->mtext, hwnd, rc); + MTextSetParent(data->mtext, hwnd); InvalidateRect(hwnd, nullptr, TRUE); } -- cgit v1.2.3