summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore/unodraw.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-03-31 13:49:52 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-04-03 06:24:33 +0000
commit4809096a1f60d9ef57a494ba6ae8fb8541361572 (patch)
tree6d83f7a2c806eeb28c72ba0f83cbb5ae8db275d0 /sw/source/core/unocore/unodraw.cxx
parentfcad02149f3a9964f36522d97faaf303fc321788 (diff)
use actual UNO enums in sw
Change-Id: If0f4a6532cc255f632d88d97e6b1a9e57462f5fc Reviewed-on: https://gerrit.libreoffice.org/35969 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/unocore/unodraw.cxx')
-rw-r--r--sw/source/core/unocore/unodraw.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/unocore/unodraw.cxx b/sw/source/core/unocore/unodraw.cxx
index 84122febaf3f..9479f9be96c1 100644
--- a/sw/source/core/unocore/unodraw.cxx
+++ b/sw/source/core/unocore/unodraw.cxx
@@ -1250,7 +1250,7 @@ void SwXShape::setPropertyValue(const OUString& rPropertyName, const uno::Any& a
if(RES_ANCHOR == pEntry->nWID && MID_ANCHOR_ANCHORTYPE == pEntry->nMemberId)
{
bool bSetAttr = true;
- sal_Int32 eNewAnchor = SWUnoHelper::GetEnumAsInt32( aValue );
+ text::TextContentAnchorType eNewAnchor = (text::TextContentAnchorType)SWUnoHelper::GetEnumAsInt32( aValue );
//if old anchor was in_cntnt the related text attribute has to be removed
const SwFormatAnchor& rOldAnchor = pFormat->GetAnchor();