From ec7ad35b1285d445aa9ae1a22fb1b583a62761eb Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 18 Jan 2024 18:37:37 +0300 Subject: =?UTF-8?q?fixes=20#4132=20(NewStory:=20=D0=BF=D1=80=D0=B8=20?= =?UTF-8?q?=D0=BE=D1=82=D0=BA=D1=80=D1=8B=D1=82=D0=B8=D0=B8=20=D0=BD=D0=B0?= =?UTF-8?q?=D1=81=D1=82=D1=80=D0=BE=D0=B5=D0=BA=20=D0=BF=D0=BB=D0=B0=D0=B3?= =?UTF-8?q?=D0=B8=D0=BD=D0=B0=20=D0=BD=D0=B5=20=D0=BF=D1=80=D0=BE=D1=80?= =?UTF-8?q?=D0=B8=D1=81=D0=BE=D0=B2=D1=8B=D0=B2=D0=B0=D0=B5=D1=82=D1=81?= =?UTF-8?q?=D1=8F=20=D0=B8=D0=BD=D1=82=D0=B5=D1=80=D1=84=D0=B5=D0=B9=D1=81?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/mTextControl/src/FormattedTextDraw.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'libs/mTextControl/src/FormattedTextDraw.cpp') diff --git a/libs/mTextControl/src/FormattedTextDraw.cpp b/libs/mTextControl/src/FormattedTextDraw.cpp index e27739ac0a..49fcf74b8f 100644 --- a/libs/mTextControl/src/FormattedTextDraw.cpp +++ b/libs/mTextControl/src/FormattedTextDraw.cpp @@ -298,8 +298,11 @@ BOOL CFormattedTextDraw::TxSetScrollPos(INT, INT, BOOL) void CFormattedTextDraw::TxInvalidateRect(LPCRECT, BOOL bRedraw) { - if (m_hwndParent) - ::InvalidateRect(m_hwndParent, NULL, bRedraw); + if (m_hwndParent) { + TextControlData *data = (TextControlData *)GetWindowLongPtr(m_hwndParent, GWLP_USERDATA); + if (!data->m_bInsideDraw) + ::InvalidateRect(m_hwndParent, NULL, bRedraw); + } } void CFormattedTextDraw::TxViewChange(BOOL) -- cgit v1.2.3