summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore/unodraw.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/unocore/unodraw.cxx')
-rw-r--r--sw/source/core/unocore/unodraw.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/sw/source/core/unocore/unodraw.cxx b/sw/source/core/unocore/unodraw.cxx
index 10024027c658..a12fa5dd1089 100644
--- a/sw/source/core/unocore/unodraw.cxx
+++ b/sw/source/core/unocore/unodraw.cxx
@@ -1529,7 +1529,7 @@ uno::Any SwXShape::getPropertyValue(const OUString& rPropertyName)
Point aPt = pObj->GetAnchorPos();
awt::Point aPoint( convertTwipToMm100( aPt.X() ),
convertTwipToMm100( aPt.Y() ) );
- aRet.setValue(&aPoint, cppu::UnoType<awt::Point>::get());
+ aRet <<= aPoint;
}
}
// #i26791# - special handling for FN_TEXT_RANGE
@@ -1552,7 +1552,7 @@ uno::Any SwXShape::getPropertyValue(const OUString& rPropertyName)
*pFormat->GetDoc(),
*aAnchor.GetContentAnchor(),
nullptr );
- aRet.setValue(&xTextRange, cppu::UnoType<text::XTextRange>::get());
+ aRet <<= xTextRange;
}
else
{
@@ -1664,15 +1664,14 @@ uno::Any SwXShape::getPropertyValue(const OUString& rPropertyName)
pItem = pImpl->GetSurround();
break;
case FN_TEXT_RANGE :
- aRet.setValue(&pImpl->GetTextRange(), cppu::UnoType<text::XTextRange>::get());
+ aRet <<= pImpl->GetTextRange();
break;
case RES_OPAQUE :
aRet <<= pImpl->GetOpaque();
break;
case FN_ANCHOR_POSITION :
{
- awt::Point aPoint;
- aRet.setValue(&aPoint, cppu::UnoType<awt::Point>::get());
+ aRet <<= awt::Point();
}
break;
// #i26791#