vcl/osx/salnativewidgets.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 062b3a5def5ec25813cabae5d292b45a589d72e4
Author: Joren De Cuyper <jore...@libreoffice.org>
Date:   Thu Feb 6 22:08:14 2014 +0100

    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 <caol...@redhat.com>
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/vcl/osx/salnativewidgets.cxx b/vcl/osx/salnativewidgets.cxx
index c1ebdb2..6f33978 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();
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to