diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-11-21 16:42:35 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-11-22 00:48:43 +0100 |
commit | 8342db057d0538334e97d575a992ce0f2cbb7e2e (patch) | |
tree | b50e1cce9c5b251025c50aa03a17303933bfb51e /svx | |
parent | 9a6169529eb687190531225bfe9fef850325ee9e (diff) |
Resolves: tdf#121531 impossible to change angle/rotation by text input
Change-Id: Ic5fb01ac088cc777534e7986001defb61bc6ee60
Reviewed-on: https://gerrit.libreoffice.org/63733
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/dialog/dialcontrol.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/svx/source/dialog/dialcontrol.cxx b/svx/source/dialog/dialcontrol.cxx index 66e8c22e461e..16a8c7bab4ec 100644 --- a/svx/source/dialog/dialcontrol.cxx +++ b/svx/source/dialog/dialcontrol.cxx @@ -601,7 +601,7 @@ void SvxDialControl::SetLinkedField(weld::SpinButton* pField, sal_Int32 nDecimal if( mpImpl->mpLinkField ) { weld::SpinButton& rField = *mpImpl->mpLinkField; - rField.connect_changed(Link<weld::Entry&,void>()); + rField.connect_value_changed(Link<weld::SpinButton&,void>()); } // remember the new linked field mpImpl->mpLinkField = pField; @@ -609,11 +609,11 @@ void SvxDialControl::SetLinkedField(weld::SpinButton* pField, sal_Int32 nDecimal if( mpImpl->mpLinkField ) { weld::SpinButton& rField = *mpImpl->mpLinkField; - rField.connect_changed(LINK(this, SvxDialControl, LinkedFieldModifyHdl)); + rField.connect_value_changed(LINK(this, SvxDialControl, LinkedFieldModifyHdl)); } } -IMPL_LINK_NOARG(SvxDialControl, LinkedFieldModifyHdl, weld::Entry&, void) +IMPL_LINK_NOARG(SvxDialControl, LinkedFieldModifyHdl, weld::SpinButton&, void) { LinkedFieldModifyHdl(); } @@ -624,7 +624,6 @@ void SvxDialControl::LinkedFieldModifyHdl() SetRotation(mpImpl->mpLinkField->get_value() * mpImpl->mnLinkedFieldValueMultiplyer); } - void SvxDialControl::SaveValue() { mpImpl->mnInitialAngle = mpImpl->mnAngle; |