[Libreoffice-commits] core.git: Branch 'libreoffice-7-1' - sc/source
Julien Nabet (via logerrit)
logerrit at kemper.freedesktop.org
Mon Dec 14 08:40:04 UTC 2020
sc/source/ui/namedlg/namedlg.cxx | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
New commits:
commit 4fe34da54b5e561f17cebcccbebc76d504fee0f1
Author: Julien Nabet <serval2412 at yahoo.fr>
AuthorDate: Sat Dec 12 13:43:48 2020 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Dec 14 09:39:31 2020 +0100
tdf#138851: Named range manager always display "Document (Global)" at launching
In Init() method, call SelectionChanged() at the end so we're sure
everything is up-to-date.
Change-Id: I1bd8c44e172cd9f739650a6f76478214c0a31ac0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107627
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sc/source/ui/namedlg/namedlg.cxx b/sc/source/ui/namedlg/namedlg.cxx
index bff39913e504..314cb42fbbfa 100644
--- a/sc/source/ui/namedlg/namedlg.cxx
+++ b/sc/source/ui/namedlg/namedlg.cxx
@@ -109,13 +109,6 @@ void ScNameDlg::Init()
xTreeView->get_height_rows(10));
m_xRangeManagerTable.reset(new ScRangeManagerTable(std::move(xTreeView), m_RangeMap, maCursorPos));
- if (m_xRangeManagerTable->n_children())
- {
- m_xRangeManagerTable->set_cursor(0);
- m_xRangeManagerTable->CheckForFormulaString();
- SelectionChanged();
- }
-
m_xRangeManagerTable->connect_changed( LINK( this, ScNameDlg, SelectionChangedHdl_Impl ) );
m_xBtnOk->connect_clicked( LINK( this, ScNameDlg, OkBtnHdl ) );
@@ -143,6 +136,14 @@ void ScNameDlg::Init()
}
CheckForEmptyTable();
+
+ if (m_xRangeManagerTable->n_children())
+ {
+ m_xRangeManagerTable->set_cursor(0);
+ m_xRangeManagerTable->CheckForFormulaString();
+ SelectionChanged();
+ }
+
}
bool ScNameDlg::IsRefInputMode() const
More information about the Libreoffice-commits
mailing list