summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorArmin Le Grand <alg@apache.org>2012-09-19 00:55:57 +0000
committerXisco Fauli <anistenis@gmail.com>2013-04-02 07:21:57 +0200
commit80e187b58a2def63f8e779214adff3cf64294c8d (patch)
tree44aa5cf39c0605f9cf07d33d8a4e3f8d8a44d7ab /svx
parent95136e701c5f631307d1b72ad8adf6b3df9090fe (diff)
#120999# Added support code in SdrDragObjOwn::MoveSdrDrag to rescue the changed AutoGrowWidth setting to allow instantaneous resizing of AutoGrowWidth objects even when using a cloned SdrObject for the UI interaction
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svddrgmt.cxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/svx/source/svdraw/svddrgmt.cxx b/svx/source/svdraw/svddrgmt.cxx
index 3dad38236e2a..2b2e061777a4 100644
--- a/svx/source/svdraw/svddrgmt.cxx
+++ b/svx/source/svdraw/svddrgmt.cxx
@@ -1233,6 +1233,19 @@ void SdrDragObjOwn::MoveSdrDrag(const Point& rNoSnapPnt)
{
mpClone = pObj->getFullDragClone();
mpClone->applySpecialDrag(DragStat());
+
+ // #120999# AutoGrowWidth may change for SdrTextObj due to the automatism used
+ // with bDisableAutoWidthOnDragging, so not only geometry changes but
+ // also this (pretty indirect) property change is possible. If it gets
+ // changed, it needs to be copied to the original since nothing will
+ // happen when it only changes in the drag clone
+ const bool bOldAutoGrowWidth(((SdrTextAutoGrowWidthItem&)pObj->GetMergedItem(SDRATTR_TEXT_AUTOGROWWIDTH)).GetValue());
+ const bool bNewAutoGrowWidth(((SdrTextAutoGrowWidthItem&)mpClone->GetMergedItem(SDRATTR_TEXT_AUTOGROWWIDTH)).GetValue());
+
+ if(bOldAutoGrowWidth != bNewAutoGrowWidth)
+ {
+ GetDragObj()->SetMergedItem(SdrTextAutoGrowWidthItem(bNewAutoGrowWidth));
+ }
}
Show();