[Libreoffice-commits] core.git: sc/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Thu Jan 23 12:42:48 UTC 2020
sc/source/ui/dbgui/tpsort.cxx | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
New commits:
commit b650fe8a75e34d109764b25527e034845f6445e1
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Jan 23 11:27:17 2020 +0000
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Jan 23 13:42:16 2020 +0100
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 at redhat.com>
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;
}
}
More information about the Libreoffice-commits
mailing list