From dd8313d2c65f0cea68b1ab2aeefb1426b1d3b76c Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 31 Aug 2020 11:47:49 +0100 Subject: Resolves: tdf#136189 don't try and sort until treeview is filled MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ic5ac71d88bab7627e14220912f4b9c935f2f1f26 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101709 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- sw/source/uibase/misc/redlndlg.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sw/source/uibase/misc') diff --git a/sw/source/uibase/misc/redlndlg.cxx b/sw/source/uibase/misc/redlndlg.cxx index 4f242e273af6..0d21ad65554c 100644 --- a/sw/source/uibase/misc/redlndlg.cxx +++ b/sw/source/uibase/misc/redlndlg.cxx @@ -717,6 +717,8 @@ void SwRedlineAcceptDlg::InsertParents(SwRedlineTable::size_type nStart, SwRedli pCurrRedline = nullptr; rTreeView.freeze(); + if (m_pTable->IsSorted()) + rTreeView.make_unsorted(); for (SwRedlineTable::size_type i = nStart; i <= nEnd; i++) { const SwRangeRedline& rRedln = pSh->GetRedline(i); @@ -763,6 +765,8 @@ void SwRedlineAcceptDlg::InsertParents(SwRedlineTable::size_type nStart, SwRedli InsertChildren(pRedlineParent, rRedln, bHasRedlineAutoFormat); } rTreeView.thaw(); + if (m_pTable->IsSorted()) + rTreeView.make_sorted(); } void SwRedlineAcceptDlg::CallAcceptReject( bool bSelect, bool bAccept ) -- cgit