diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2024-09-09 23:40:05 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2024-09-10 11:09:15 +0200 |
commit | c7623db05279d95b51381538b932f43dde1c5a9b (patch) | |
tree | e04d1317595d3248d8203da1854e6a5343c8a2bf /include | |
parent | cc1cf3d93c841ebbaca9beb06ae11ae77f7619b6 (diff) |
slideshow: fix initVisible value
be sure we don't overwrite the real "visibility"
value when other property is read
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ied2285e8183665b5b48d10d74e1cc052cf8edcbe
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173110
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/animations/animationnodehelper.hxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/animations/animationnodehelper.hxx b/include/animations/animationnodehelper.hxx index 9d978b76b552..5c03e2341294 100644 --- a/include/animations/animationnodehelper.hxx +++ b/include/animations/animationnodehelper.hxx @@ -75,12 +75,11 @@ namespace anim } inline bool getVisibilityProperty( - const css::uno::Reference< css::animations::XAnimate >& xAnimateNode) + const css::uno::Reference< css::animations::XAnimate >& xAnimateNode, bool& bReturn) { - bool bVisible( false ); if( xAnimateNode->getAttributeName().equalsIgnoreAsciiCase("visibility") ) { - + bool bVisible( false ); css::uno::Any aAny( xAnimateNode->getTo() ); // try to extract bool value @@ -104,9 +103,11 @@ namespace anim } } } + bReturn = bVisible; + return true; } - return bVisible; + return false; } } |