cui/source/tabpages/numfmt.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
New commits: commit 35f4219155e7efa0eee231a886a0df8f7dc9c42e Author: Eike Rathke <er...@redhat.com> AuthorDate: Thu Jan 17 17:00:57 2019 +0100 Commit: Eike Rathke <er...@redhat.com> CommitDate: Tue Jan 22 11:25:06 2019 +0100 Resolves: tdf#122786 use weld::SpinButton::set_value() instead of set_text() ... otherwise get_value() returns 0. Change-Id: I345d31e888e40f1fc191cef7dac802eb860a824f Reviewed-on: https://gerrit.libreoffice.org/66539 Reviewed-by: Eike Rathke <er...@redhat.com> Tested-by: Jenkins (cherry picked from commit af8d616fe7556716af8ccd4c4de7a68ae52ce2b7) Reviewed-on: https://gerrit.libreoffice.org/66546 diff --git a/cui/source/tabpages/numfmt.cxx b/cui/source/tabpages/numfmt.cxx index a150af80db56..b6a4a8ba4d5c 100644 --- a/cui/source/tabpages/numfmt.cxx +++ b/cui/source/tabpages/numfmt.cxx @@ -947,10 +947,10 @@ void SvxNumberFormatTabPage::UpdateOptions_Impl( bool bCheckCatChange /*= sal_Fa m_xEdDecimals->set_text( "" ); //General format tdf#44399 else if ( nCategory == CAT_FRACTION ) - m_xEdDenominator->set_text( OUString::number( nDecimals ) ); + m_xEdDenominator->set_value( nDecimals ); else - m_xEdDecimals->set_text( OUString::number( nDecimals ) ); - m_xEdLeadZeroes->set_text( OUString::number( nZeroes ) ); + m_xEdDecimals->set_value( nDecimals ); + m_xEdLeadZeroes->set_value( nZeroes ); m_xBtnNegRed->set_active( bNegRed ); if ( nCategory != CAT_SCIENTIFIC ) { @@ -976,8 +976,8 @@ void SvxNumberFormatTabPage::UpdateOptions_Impl( bool bCheckCatChange /*= sal_Fa m_xBtnNegRed->set_sensitive(false); m_xBtnThousand->set_sensitive(false); m_xBtnEngineering->set_sensitive(false); - m_xEdDecimals->set_text( OUString::number( 0 ) ); - m_xEdLeadZeroes->set_text( OUString::number( 0 ) ); + m_xEdDecimals->set_text( OUString() ); + m_xEdLeadZeroes->set_text( OUString() ); m_xBtnNegRed->set_active( false ); m_xBtnThousand->set_active( false ); m_xBtnEngineering->set_active( false ); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits