summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-09-03 19:23:05 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-09-04 09:58:38 +0200
commit25f109c229eb4300bee79e41ae69137d5f9fdb35 (patch)
tree3918c58e6c1408f8e95c709fffea3bcba58f2d65
parentdd371caa3aff09c80c19772fcf5968cfcf14ff8c (diff)
reformat current value on initial weld
Change-Id: I415102e94fe2dcd9c851b47462139e6b1f425bce Reviewed-on: https://gerrit.libreoffice.org/59953 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--include/vcl/weld.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx
index 74ad3803bdc0..60923123c57a 100644
--- a/include/vcl/weld.hxx
+++ b/include/vcl/weld.hxx
@@ -603,6 +603,7 @@ public:
m_xSpinButton->connect_input(LINK(this, MetricSpinButton, spin_button_input));
m_xSpinButton->connect_value_changed(
LINK(this, MetricSpinButton, spin_button_value_changed));
+ spin_button_output(*m_xSpinButton);
}
FieldUnit get_unit() const { return m_eSrcUnit; }
@@ -762,6 +763,7 @@ public:
m_xSpinButton->connect_value_changed(LINK(this, TimeSpinButton, spin_button_value_changed));
m_xSpinButton->connect_cursor_position(
LINK(this, TimeSpinButton, spin_button_cursor_position));
+ spin_button_output(*m_xSpinButton);
}
void set_value(const tools::Time& rTime) { m_xSpinButton->set_value(ConvertValue(rTime)); }