Resolves: tdf#129158 freeze/thaw around bulk inserts
Change-Id: I0ba22cd262512b467abd383d2f932d2adf6ca1a5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87256
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
diff --git a/sc/source/ui/dbgui/tpsort.cxx b/sc/source/ui/dbgui/tpsort.cxx
index 13c2785..2e7ed6e 100644
--- a/sc/source/ui/dbgui/tpsort.cxx
+++ b/sc/source/ui/dbgui/tpsort.cxx
@@ -320,10 +320,11 @@ void ScTabPageSortFields::FillFieldLists( sal_uInt16 nStartField )
if ( pDoc )
{
for ( sal_uInt16 i=nStartField; i<nSortKeyCount; i++ )
for (sal_uInt16 j = nStartField; j < nSortKeyCount; ++j)
{
m_aSortWin.m_aSortKeyItems[i]->m_xLbSort->clear();
m_aSortWin.m_aSortKeyItems[i]->m_xLbSort->append_text(aStrUndefined);
m_aSortWin.m_aSortKeyItems[j]->m_xLbSort->clear();
m_aSortWin.m_aSortKeyItems[j]->m_xLbSort->freeze();
m_aSortWin.m_aSortKeyItems[j]->m_xLbSort->append_text(aStrUndefined);
}
SCCOL nFirstSortCol = aSortData.nCol1;
@@ -375,6 +376,12 @@ void ScTabPageSortFields::FillFieldLists( sal_uInt16 nStartField )
i++;
}
}
for (sal_uInt16 j=nStartField; j < nSortKeyCount; ++j)
{
m_aSortWin.m_aSortKeyItems[j]->m_xLbSort->thaw();
}
nFieldCount = i;
}
}