Kaydet (Commit) c113aded authored tarafından Miklos Vajna's avatar Miklos Vajna Kaydeden (comit) Noel Grandin

tdf#107029 xmlscript: fix enum conversion

Regression from commit 0fe6f1a1 (use
actual UNO enums in vcl..xmlsecurity, 2017-04-03), it's important when
changing a sal_Int16 to an enum, then arguments of makeAny() calls of
that variable are explicitly casted the previous type to keep
compatibility.

Change-Id: Ib55eeded34033ce536078919c6fad4d571951cd3
Reviewed-on: https://gerrit.libreoffice.org/36358Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
Tested-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 74859b3a
...@@ -1092,7 +1092,7 @@ bool ImportContext::importButtonTypeProperty( ...@@ -1092,7 +1092,7 @@ bool ImportContext::importButtonTypeProperty(
throw xml::sax::SAXException( "invalid button-type value!", Reference< XInterface >(), Any() ); throw xml::sax::SAXException( "invalid button-type value!", Reference< XInterface >(), Any() );
} }
_xControlModel->setPropertyValue( rPropName, makeAny( nButtonType ) ); _xControlModel->setPropertyValue( rPropName, makeAny( (sal_Int16)nButtonType ) );
return true; return true;
} }
return false; return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment