[Libreoffice-commits] core.git: vcl/osx

Joren De Cuyper jorendc at libreoffice.org
Fri Feb 7 07:04:30 PST 2014


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

New commits:
commit 062b3a5def5ec25813cabae5d292b45a589d72e4
Author: Joren De Cuyper <jorendc at 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 <caolanm at redhat.com>
    Reviewed-by: Caolán McNamara <caolanm at 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();


More information about the Libreoffice-commits mailing list