diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-08-31 11:47:49 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2020-09-01 13:40:24 +0200 |
commit | c52ac477beefc46802148033adbca9edb9970ac1 (patch) | |
tree | a40b5f7aa458c5a41762c5d6c4f5dd96595a5089 /svx | |
parent | 9ee0dbd54a60b07ff692a842e49942e56f762f92 (diff) |
Resolves: tdf#136189 don't try and sort until treeview is filled
Change-Id: Ic5ac71d88bab7627e14220912f4b9c935f2f1f26
and...
Related: tdf#136189 don't assert on unsetting non-existing previous sort column
Change-Id: If2330cc83ace9ec0133b99eec8c2f0be3919013e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101710
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/dialog/ctredlin.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/svx/source/dialog/ctredlin.cxx b/svx/source/dialog/ctredlin.cxx index 3374efde51b5..3116ec7ec5a5 100644 --- a/svx/source/dialog/ctredlin.cxx +++ b/svx/source/dialog/ctredlin.cxx @@ -110,7 +110,9 @@ IMPL_LINK(SvxRedlinTable, HeaderBarClick, int, nColumn, void) } else { - pTreeView->set_sort_indicator(TRISTATE_INDET, pTreeView->get_sort_column()); + int nOldSortColumn = pTreeView->get_sort_column(); + if (nOldSortColumn != -1) + pTreeView->set_sort_indicator(TRISTATE_INDET, nOldSortColumn); pTreeView->set_sort_column(nColumn); } |