diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-08-07 15:56:33 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-08-07 22:28:20 +0200 |
commit | bf8c682f3e956d22bb731808f16a82e44463239f (patch) | |
tree | 288625f77e0058edb407e0047ee11c28e19375ba /cui | |
parent | 6d024a69164716f7856ec936a72d01a6630d2a7c (diff) |
Resolves: tdf#126691 width/height considered changed, but it didn't
regression from...
commit c4041a3b6c703254ee3977eef1a989992506772b
Author: Caolán McNamara <caolanm@redhat.com>
Date: Mon May 28 14:33:42 2018 +0100
weld SvxSwPosSizeTabPage
Change-Id: Ib8a5359a1aee9ac7b645621b9de9311cd56449f5
Reviewed-on: https://gerrit.libreoffice.org/77121
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/tabpages/swpossizetabpage.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cui/source/tabpages/swpossizetabpage.cxx b/cui/source/tabpages/swpossizetabpage.cxx index 1b2b6d37ee79..073a305f4cb0 100644 --- a/cui/source/tabpages/swpossizetabpage.cxx +++ b/cui/source/tabpages/swpossizetabpage.cxx @@ -998,10 +998,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) |