From 99635ea0d8918350fc740ce6d00bc46f0d771eb6 Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Wed, 2 Sep 2015 18:53:34 +0200 Subject: opengl: Don't cache the menubar background. It can change based on the _toolbar_ size. The toolbar itself is fine though; it may depend on the menubar size, but that should be constant. Change-Id: Id2c68c89f4ec0774bc74b8c4a5b9a5e59e22137f Reviewed-on: https://gerrit.libreoffice.org/18279 Tested-by: Jenkins Reviewed-by: Michael Meeks --- include/vcl/salnativewidgets.hxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/vcl') diff --git a/include/vcl/salnativewidgets.hxx b/include/vcl/salnativewidgets.hxx index fb128d380d4e..cc5db6ffb694 100644 --- a/include/vcl/salnativewidgets.hxx +++ b/include/vcl/salnativewidgets.hxx @@ -287,6 +287,12 @@ public: case CTRL_CHECKBOX: case CTRL_RADIOBUTTON: return false; + + case CTRL_MENUBAR: + if (mnPart == PART_ENTIRE_CONTROL) + return false; + break; + default: break; } -- cgit