summaryrefslogtreecommitdiff
path: root/sw/source/ui/vba/vbafind.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/vba/vbafind.cxx')
-rw-r--r--sw/source/ui/vba/vbafind.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/vba/vbafind.cxx b/sw/source/ui/vba/vbafind.cxx
index c995527e20a6..52a0d8c22e3e 100644
--- a/sw/source/ui/vba/vbafind.cxx
+++ b/sw/source/ui/vba/vbafind.cxx
@@ -84,7 +84,7 @@ void SwVbaFind::SetReplace( sal_Int32 type )
uno::Reference< text::XTextRange > SwVbaFind::FindOneElement() throw ( uno::RuntimeException )
{
uno::Reference< text::XTextRange > xFoundOne;
- if( mxTVC->getString().getLength() > 0 )
+ if( !mxTVC->getString().isEmpty() )
{
if( getForward() )
{