tdf#109177: Fix expected type of Orientation attr

Regression introduced with 7e781aa15ab8c6bb727ccf290db7768bc9ba6245 "Clean up
uses of Any::getValue() in xmlscript"

Change-Id: I66df1c5aacab1d697438c57418c9100f9dba627a
This commit is contained in:
Stephan Bergmann 2017-08-10 11:25:14 +02:00
parent 4378108d06
commit 1fc6b2f745

View File

@ -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)
{