diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-04-05 14:11:19 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-04-05 21:59:39 +0200 |
commit | 6eb0c740603c2ea7326e4b9cbfeab144e4a2b781 (patch) | |
tree | 013ffc2b1b346c3843b3a0cb37c28545fd924b73 | |
parent | e21b2a61d64b697413c0fc9013746b9d358da4c6 (diff) |
we want get_active_text to return edit text in editable case
Change-Id: Ib95e0b10e2291eef8c7a4dd0849dc5ef215f3104
Reviewed-on: https://gerrit.libreoffice.org/52464
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | vcl/source/app/salvtables.cxx | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx index 62e5873b8501..905e29f5b33d 100644 --- a/vcl/source/app/salvtables.cxx +++ b/vcl/source/app/salvtables.cxx @@ -1488,11 +1488,6 @@ public: m_xComboBoxText->SelectEntryPos(pos); } - virtual OUString get_active_text() const override - { - return m_xComboBoxText->GetSelectedEntry(); - } - virtual OUString get_text(int pos) const override { return m_xComboBoxText->GetEntry(pos); @@ -1576,6 +1571,11 @@ public: m_xComboBoxText->SetSelectHdl(LINK(this, SalInstanceComboBoxTextWithoutEdit, SelectHdl)); } + virtual OUString get_active_text() const override + { + return m_xComboBoxText->GetSelectedEntry(); + } + virtual void set_entry_error(bool /*bError*/) override { assert(false); @@ -1632,6 +1632,11 @@ public: m_xComboBoxText->SetControlForeground(); } + virtual OUString get_active_text() const override + { + return m_xComboBoxText->GetText(); + } + virtual void set_entry_text(const OUString& rText) override { m_xComboBoxText->SetText(rText); |