diff options
Diffstat (limited to 'sc/source/ui/vba/vbaworkbooks.cxx')
-rw-r--r-- | sc/source/ui/vba/vbaworkbooks.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sc/source/ui/vba/vbaworkbooks.cxx b/sc/source/ui/vba/vbaworkbooks.cxx index 8b4f68e64f50..1fd605d8b972 100644 --- a/sc/source/ui/vba/vbaworkbooks.cxx +++ b/sc/source/ui/vba/vbaworkbooks.cxx @@ -242,10 +242,11 @@ ScVbaWorkbooks::Open( const OUString& rFileName, const uno::Any& /*UpdateLinks*/ throw uno::RuntimeException("Expected value for Delimiter" ); OUString sStr; Delimiter >>= sStr; - if ( !sStr.isEmpty() ) - nDelim = sStr[0]; - else + if ( sStr.isEmpty() ) throw uno::RuntimeException("Incorrect value for Delimiter" ); + + nDelim = sStr[0]; + } getCurrentDelim() = nDelim; //set new current |