diff options
Diffstat (limited to 'sc/source/ui/vba/vbaapplication.cxx')
-rw-r--r-- | sc/source/ui/vba/vbaapplication.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sc/source/ui/vba/vbaapplication.cxx b/sc/source/ui/vba/vbaapplication.cxx index 1c915d15ae3b..31e7b114c7bb 100644 --- a/sc/source/ui/vba/vbaapplication.cxx +++ b/sc/source/ui/vba/vbaapplication.cxx @@ -569,12 +569,11 @@ ScVbaApplication::GoTo( const uno::Any& Reference, const uno::Any& Scroll ) if( Scroll.hasValue() ) { bool aScroll = false; - if( Scroll >>= aScroll ) - { - bScroll = aScroll; - } - else + if( !(Scroll >>= aScroll) ) throw uno::RuntimeException("second parameter should be boolean" ); + + bScroll = aScroll; + } OUString sRangeName; |