summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMert Tumer <mert.tumer@collabora.com>2022-01-18 12:57:16 +0300
committerMert Tumer <mert.tumer@collabora.com>2022-03-14 11:52:59 +0100
commitdc05d912b56751ee53e2ee3d2638d85829b6a2d9 (patch)
tree3180a280d1798ee69a2054f7c6d0bcc5a4af5f7e /include
parent74d24d03afc58a535d3afb7d0c2d172fa1636829 (diff)
set active element to -1 when no selection for fontnamebox
FontNameBox sets the currentVal to emptystring when there's a mixed font-name selection on the text but does not update the active_element which is incorrect whereas other comboboxes such as FontSize does it correctly. Signed-off-by: Mert Tumer <mert.tumer@collabora.com> Change-Id: Iff86bba64c2ab564ff5c5fa979eb846af9651a11 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128551 Reviewed-by: Szymon Kłos <szymon.klos@collabora.com> Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131518 Tested-by: Jenkins
Diffstat (limited to 'include')
-rw-r--r--include/svtools/ctrlbox.hxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/svtools/ctrlbox.hxx b/include/svtools/ctrlbox.hxx
index 28730d16e85a..ca45b081cf5a 100644
--- a/include/svtools/ctrlbox.hxx
+++ b/include/svtools/ctrlbox.hxx
@@ -368,6 +368,7 @@ public:
int get_active() const { return m_xComboBox->get_active(); }
OUString get_active_text() const { return m_xComboBox->get_active_text(); }
void set_active_or_entry_text(const OUString& rText);
+ void set_active(int nPos) { m_xComboBox->set_active(nPos); }
int get_count() const { return m_xComboBox->get_count(); }
OUString get_text(int nIndex) const { return m_xComboBox->get_text(nIndex); }
void set_sensitive(bool bSensitive) { m_xComboBox->set_sensitive(bSensitive); }