summaryrefslogtreecommitdiff
path: root/reportdesign/source/core/sdr/RptObject.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-04-03 11:02:38 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-04-03 09:40:19 +0000
commit5d0e485e827057eee9fb2c997685690b710e7f34 (patch)
treec83057f1e85195379451fafe32b274065f99167e /reportdesign/source/core/sdr/RptObject.cxx
parented6c5a4908edb7d4ab075127b710a92e2abc753f (diff)
use actual UNO enums in reportdesign..svtools
Change-Id: Idcd916382b87f8542dc6b5cdcb5ecb01d6947203 Reviewed-on: https://gerrit.libreoffice.org/36043 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'reportdesign/source/core/sdr/RptObject.cxx')
-rw-r--r--reportdesign/source/core/sdr/RptObject.cxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/reportdesign/source/core/sdr/RptObject.cxx b/reportdesign/source/core/sdr/RptObject.cxx
index ed7426783038..92ee82a45587 100644
--- a/reportdesign/source/core/sdr/RptObject.cxx
+++ b/reportdesign/source/core/sdr/RptObject.cxx
@@ -187,29 +187,30 @@ namespace
{
sal_Int16 nTextAlign = 0;
lhs >>= nTextAlign;
+ style::ParagraphAdjust eAdjust;
switch(nTextAlign)
{
case awt::TextAlign::LEFT:
- nTextAlign = style::ParagraphAdjust_LEFT;
+ eAdjust = style::ParagraphAdjust_LEFT;
break;
case awt::TextAlign::CENTER:
- nTextAlign = style::ParagraphAdjust_CENTER;
+ eAdjust = style::ParagraphAdjust_CENTER;
break;
case awt::TextAlign::RIGHT:
- nTextAlign = style::ParagraphAdjust_RIGHT;
+ eAdjust = style::ParagraphAdjust_RIGHT;
break;
default:
OSL_FAIL("Illegal text alignment value!");
break;
}
- aRet <<= (style::ParagraphAdjust)nTextAlign;
+ aRet <<= eAdjust;
}
else
{
sal_Int16 nTextAlign = 0;
sal_Int16 eParagraphAdjust = 0;
lhs >>= eParagraphAdjust;
- switch(eParagraphAdjust)
+ switch((style::ParagraphAdjust)eParagraphAdjust)
{
case style::ParagraphAdjust_LEFT:
case style::ParagraphAdjust_BLOCK: