summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoren De Cuyper <jorendc@libreoffice.org>2014-02-06 22:08:14 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-02-07 15:04:05 +0000
commit062b3a5def5ec25813cabae5d292b45a589d72e4 (patch)
tree41fc831444e803d6a5070807b0e0bdf6f2fea3dc
parent636b3203a7509ae025cb0f3cebbe0b0f766ea7aa (diff)
fdo#69358 only draw native style when toolbar is docked on top
Change-Id: I194a34881a6bd7cc14ef342d9305449094154696 Reviewed-on: https://gerrit.libreoffice.org/7920 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-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();