diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-08-10 11:25:14 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-08-10 12:10:04 +0200 |
commit | efc91dd551e617f4a24b52a0284bdca850f4d61b (patch) | |
tree | 07176304544452918e996b1fea2c842e036fa6e9 /xmlscript | |
parent | 9d1f32a4308c9f699cb52aecc11566afb7d0d3f7 (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/40955
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'xmlscript')
-rw-r--r-- | xmlscript/source/xmldlg_imexp/xmldlg_export.cxx | 2 |
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 5a5afd351b71..6238f6945e76 100644 --- a/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx +++ b/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx @@ -860,7 +860,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) { |