summaryrefslogtreecommitdiff
path: root/xmlscript
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-08-10 11:25:14 +0200
committerAndras Timar <andras.timar@collabora.com>2017-08-11 10:48:43 +0200
commit34d1d02d6972367247bf0ac3c622ac8dd2650fe4 (patch)
tree15e185b601df606569139370f6da8b74bd6edf66 /xmlscript
parent1422b89e076fec84cab9a732648833ce03f09caa (diff)
tdf#109177: Fix expected type of Orientation attr
Regression introduced with 7e781aa15ab8c6bb727ccf290db7768bc9ba6245 "Clean up uses of Any::getValue() in xmlscript" Change-Id: I66df1c5aacab1d697438c57418c9100f9dba627a (cherry picked from commit 1fc6b2f745300eae03373a1beb5d5ff79cf7de10) Reviewed-on: https://gerrit.libreoffice.org/40956 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Jenkins <ci@libreoffice.org> (cherry picked from commit 4b2dcb3eb74038f6e4c25cc1f1ee4ef2f0d25e11)
Diffstat (limited to 'xmlscript')
-rw-r--r--xmlscript/source/xmldlg_imexp/xmldlg_export.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx
index b352053c8ee6..43c0db80ad8e 100644
--- a/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx
+++ b/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx
@@ -861,7 +861,7 @@ void ElementDescriptor::readOrientationAttr( OUString const & rPropName, OUStrin
if (beans::PropertyState_DEFAULT_VALUE != _xPropState->getPropertyState( rPropName ))
{
Any a( _xProps->getPropertyValue( rPropName ) );
- if (auto n = o3tl::tryAccess<sal_Int16>(a))
+ if (auto n = o3tl::tryAccess<sal_Int32>(a))
{
switch (*n)
{