summaryrefslogtreecommitdiff
path: root/vcl/source/window/brdwin.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/window/brdwin.cxx')
-rw-r--r--vcl/source/window/brdwin.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/vcl/source/window/brdwin.cxx b/vcl/source/window/brdwin.cxx
index 65110bfc07d2..abfcd3ecf5b0 100644
--- a/vcl/source/window/brdwin.cxx
+++ b/vcl/source/window/brdwin.cxx
@@ -679,8 +679,11 @@ void ImplSmallBorderWindowView::DrawWindow(vcl::RenderContext& rRenderContext, c
bool bMouseOver = false;
vcl::Window *pCtrlChild = pCtrl->GetWindow(GetWindowType::FirstChild);
- while(pCtrlChild && !(bMouseOver = pCtrlChild->IsMouseOver()))
+ while(pCtrlChild)
{
+ bMouseOver = pCtrlChild->IsMouseOver();
+ if (bMouseOver)
+ break;
pCtrlChild = pCtrlChild->GetWindow(GetWindowType::Next);
}