Don't calculate refresh optimizations if we're not going to use them
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78025 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
c808bbb4d7
commit
cf72b6c111
@ -11580,6 +11580,10 @@ void wxRichTextAction::CalculateRefreshOptimizations(wxArrayInt& optimizationLin
|
|||||||
if (!container)
|
if (!container)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
// No point in doing optimizations if we're not going to use them
|
||||||
|
if (m_ctrl && m_ctrl->IsFrozen())
|
||||||
|
return;
|
||||||
|
|
||||||
// NOTE: we're assuming that the buffer is laid out correctly at this point.
|
// NOTE: we're assuming that the buffer is laid out correctly at this point.
|
||||||
// If we had several actions, which only invalidate and leave layout until the
|
// If we had several actions, which only invalidate and leave layout until the
|
||||||
// paint handler is called, then this might not be true. So we may need to switch
|
// paint handler is called, then this might not be true. So we may need to switch
|
||||||
|
Loading…
Reference in New Issue
Block a user