diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-01-23 11:27:17 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-01-23 13:42:16 +0100 |
commit | b650fe8a75e34d109764b25527e034845f6445e1 (patch) | |
tree | ec2a3a7115b19c3d43b8c9e7f80a7f0cb07c204c /sc | |
parent | 6b6d2e737f59ffcf8bb3f6233eadda25be6c24ee (diff) |
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>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/dbgui/tpsort.cxx | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/sc/source/ui/dbgui/tpsort.cxx b/sc/source/ui/dbgui/tpsort.cxx index 13c2785953c2..2e7ed6e3af8d 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; } } |