summaryrefslogtreecommitdiff
path: root/toolkit/source/awt/vclxwindow.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/source/awt/vclxwindow.cxx')
-rw-r--r--toolkit/source/awt/vclxwindow.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/toolkit/source/awt/vclxwindow.cxx b/toolkit/source/awt/vclxwindow.cxx
index b7e48d50af36..d424479021aa 100644
--- a/toolkit/source/awt/vclxwindow.cxx
+++ b/toolkit/source/awt/vclxwindow.cxx
@@ -378,7 +378,7 @@ void VCLXWindow::SetWindow( Window* pWindow )
if ( GetWindow() )
{
GetWindow()->AddEventListener( LINK( this, VCLXWindow, WindowEventListener ) );
- bool bDirectVisible = pWindow ? pWindow->IsVisible() : false;
+ bool bDirectVisible = pWindow && pWindow->IsVisible();
mpImpl->setDirectVisible( bDirectVisible );
}
}