diff options
Diffstat (limited to 'sd/source/ui/func/fusel.cxx')
-rw-r--r-- | sd/source/ui/func/fusel.cxx | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/sd/source/ui/func/fusel.cxx b/sd/source/ui/func/fusel.cxx index 725ea9f4e54e..846b2e208cc5 100644 --- a/sd/source/ui/func/fusel.cxx +++ b/sd/source/ui/func/fusel.cxx @@ -1400,17 +1400,10 @@ bool FuSelection::AnimateObj(SdrObject* pObj, const Point& rPos) // Check the return value from the script bool bTmp = false; - if ( eErr == ERRCODE_NONE && + bAnimated = eErr == ERRCODE_NONE && aRet.getValueType() == cppu::UnoType<bool>::get() && ( aRet >>= bTmp ) && - bTmp ) - { - bAnimated = true; - } - else - { - bAnimated = false; - } + bTmp; } else { |