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:
Julian Smart 2014-10-16 10:13:48 +00:00
parent c808bbb4d7
commit cf72b6c111

View File

@ -11580,6 +11580,10 @@ void wxRichTextAction::CalculateRefreshOptimizations(wxArrayInt& optimizationLin
if (!container)
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.
// 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