summaryrefslogtreecommitdiffstats
path: root/cui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-08-07 15:56:33 +0100
committerXisco Faulí <xiscofauli@libreoffice.org>2019-08-08 11:48:31 +0200
commitc984908be223d11b1b52d28d82f42c41eedbf8e4 (patch)
tree01f328247fd19cc31f3778f0e00e39209a64eff4 /cui
parentResolves: tdf#125483 locale separator label needs to be derived from original (diff)
downloadcore-c984908be223d11b1b52d28d82f42c41eedbf8e4.tar.gz
core-c984908be223d11b1b52d28d82f42c41eedbf8e4.zip
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/77122 Tested-by: Jenkins Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/tabpages/swpossizetabpage.cxx2
1 files changed, 2 insertions, 0 deletions
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)