summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/utlui/bookctrl.cxx2
-rw-r--r--sw/source/ui/utlui/tmplctrl.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/utlui/bookctrl.cxx b/sw/source/ui/utlui/bookctrl.cxx
index 17f3c576ca59..22255069a97f 100644
--- a/sw/source/ui/utlui/bookctrl.cxx
+++ b/sw/source/ui/utlui/bookctrl.cxx
@@ -89,7 +89,7 @@ void SwBookmarkControl::Paint( const UserDrawEvent& )
void SwBookmarkControl::Command( const CommandEvent& rCEvt )
{
if ( rCEvt.GetCommand() == COMMAND_CONTEXTMENU &&
- GetStatusBar().GetItemText( GetId() ).Len() )
+ !GetStatusBar().GetItemText( GetId() ).isEmpty() )
{
CaptureMouse();
BookmarkPopup_Impl aPop;
diff --git a/sw/source/ui/utlui/tmplctrl.cxx b/sw/source/ui/utlui/tmplctrl.cxx
index 456faf6e7d8b..170b0628c570 100644
--- a/sw/source/ui/utlui/tmplctrl.cxx
+++ b/sw/source/ui/utlui/tmplctrl.cxx
@@ -90,7 +90,7 @@ void SwTemplateControl::Paint( const UserDrawEvent& )
void SwTemplateControl::Command( const CommandEvent& rCEvt )
{
if ( rCEvt.GetCommand() == COMMAND_CONTEXTMENU &&
- GetStatusBar().GetItemText( GetId() ).Len() )
+ !GetStatusBar().GetItemText( GetId() ).isEmpty() )
{
CaptureMouse();
SwTemplatePopup_Impl aPop;