diff options
author | George Hazan <george.hazan@gmail.com> | 2024-01-18 18:51:39 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-01-18 18:51:39 +0300 |
commit | 01894b3f4774f6fcb40c7799b51b61c073d9222f (patch) | |
tree | a0b0dcc1f43dc595e6d2954947d2fdf8c8c18ff0 /libs/mTextControl | |
parent | ec7ad35b1285d445aa9ae1a22fb1b583a62761eb (diff) |
fixes #4131 (NewStory: если водить мышкой поверх сообщения, которое редактируется, появляются глитчи)
Diffstat (limited to 'libs/mTextControl')
-rw-r--r-- | libs/mTextControl/src/FormattedTextDraw.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/mTextControl/src/FormattedTextDraw.cpp b/libs/mTextControl/src/FormattedTextDraw.cpp index 49fcf74b8f..1fda38a677 100644 --- a/libs/mTextControl/src/FormattedTextDraw.cpp +++ b/libs/mTextControl/src/FormattedTextDraw.cpp @@ -300,7 +300,7 @@ void CFormattedTextDraw::TxInvalidateRect(LPCRECT, BOOL bRedraw) { if (m_hwndParent) { TextControlData *data = (TextControlData *)GetWindowLongPtr(m_hwndParent, GWLP_USERDATA); - if (!data->m_bInsideDraw) + if (!data || !data->m_bInsideDraw) ::InvalidateRect(m_hwndParent, NULL, bRedraw); } } |