summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/osx/salnativewidgets.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/osx/salnativewidgets.cxx b/vcl/osx/salnativewidgets.cxx
index c1ebdb284dc4..6f33978b64b0 100644
--- a/vcl/osx/salnativewidgets.cxx
+++ b/vcl/osx/salnativewidgets.cxx
@@ -534,7 +534,7 @@ sal_Bool AquaSalGraphics::drawNativeControl(ControlType nType,
case CTRL_TOOLBAR:
{
- if (nPart == PART_DRAW_BACKGROUND_HORZ || nPart == PART_DRAW_BACKGROUND_VERT)
+ if (rControlRegion.Top() == 0 && nPart == PART_DRAW_BACKGROUND_HORZ)
{
BOOL isMain = [mpFrame->getNSWindow() isMainWindow];
CGFloat unifiedHeight = rControlRegion.GetHeight();