[Libreoffice-commits] core.git: Branch 'libreoffice-6-3' - cui/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Thu Aug 8 09:49:14 UTC 2019


 cui/source/tabpages/swpossizetabpage.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit c984908be223d11b1b52d28d82f42c41eedbf8e4
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed Aug 7 15:56:33 2019 +0100
Commit:     Xisco Faulí <xiscofauli at libreoffice.org>
CommitDate: Thu Aug 8 11:48:31 2019 +0200

    Resolves: tdf#126691 width/height considered changed, but it didn't
    
    regression from...
    
    commit c4041a3b6c703254ee3977eef1a989992506772b
    Author: Caolán McNamara <caolanm at redhat.com>
    Date:   Mon May 28 14:33:42 2018 +0100
    
        weld SvxSwPosSizeTabPage
    
    Change-Id: Ib8a5359a1aee9ac7b645621b9de9311cd56449f5
    Reviewed-on: https://gerrit.libreoffice.org/77122
    Tested-by: Jenkins
    Reviewed-by: Xisco Faulí <xiscofauli at libreoffice.org>

diff --git a/cui/source/tabpages/swpossizetabpage.cxx b/cui/source/tabpages/swpossizetabpage.cxx
index bedbecfa9fa9..9039cd969dad 100644
--- a/cui/source/tabpages/swpossizetabpage.cxx
+++ b/cui/source/tabpages/swpossizetabpage.cxx
@@ -997,10 +997,12 @@ void SvxSwPosSizeTabPage::Reset( const SfxItemSet* rSet)
     sal_Int32 nWidth = std::max( pItem ? ( static_cast<const SfxUInt32Item*>(pItem)->GetValue()) : 0, sal_uInt32(1) );
 
     m_xWidthMF->set_value(m_xWidthMF->normalize(nWidth), FieldUnit::TWIP);
+    m_xWidthMF->save_value();
 
     pItem = GetItem( *rSet, SID_ATTR_TRANSFORM_HEIGHT );
     sal_Int32 nHeight = std::max( pItem ? ( static_cast<const SfxUInt32Item*>(pItem)->GetValue()) : 0, sal_uInt32(1) );
     m_xHeightMF->set_value(m_xHeightMF->normalize(nHeight), FieldUnit::TWIP);
+    m_xHeightMF->save_value();
     m_fWidthHeightRatio = double(nWidth) / double(nHeight);
 
     if(!m_bPositioningDisabled)


More information about the Libreoffice-commits mailing list