tdf#109177: Fix expected type of Orientation attr
Regression introduced with 7e781aa15a
"Clean up
uses of Any::getValue() in xmlscript"
Change-Id: I66df1c5aacab1d697438c57418c9100f9dba627a
This commit is contained in:
@@ -860,7 +860,7 @@ void ElementDescriptor::readOrientationAttr( OUString const & rPropName, OUStrin
|
|||||||
if (beans::PropertyState_DEFAULT_VALUE != _xPropState->getPropertyState( rPropName ))
|
if (beans::PropertyState_DEFAULT_VALUE != _xPropState->getPropertyState( rPropName ))
|
||||||
{
|
{
|
||||||
Any a( _xProps->getPropertyValue( rPropName ) );
|
Any a( _xProps->getPropertyValue( rPropName ) );
|
||||||
if (auto n = o3tl::tryAccess<sal_Int16>(a))
|
if (auto n = o3tl::tryAccess<sal_Int32>(a))
|
||||||
{
|
{
|
||||||
switch (*n)
|
switch (*n)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user