summaryrefslogtreecommitdiff
path: root/vcl/source/window/menufloatingwindow.cxx
diff options
context:
space:
mode:
authorPhilippe Jung <phil.jung@free.fr>2015-05-13 15:59:40 +0200
committerAdolfo Jayme Barrientos <fitojb@ubuntu.com>2015-05-14 17:17:55 +0000
commit415454cfbc6add8534e1dcff1ff16cc8dcc9296c (patch)
treecc6b89d02bb4ae51c34202d91e060fba939ff075 /vcl/source/window/menufloatingwindow.cxx
parentfa4a87bc539865962dabf00aea465479d34faf92 (diff)
tdf#86138 Context menu should state the name of the toolbar
When Menu::SetText is called, it defines the title of the menu (reuse of an already defined & not used aTitleText) Popup-menu with a title defined paint it on top of the popup. Text is bold with a background slightly darker than the rest of the popup. Change-Id: Ifca1be60541400f76f562b03f6e3c40dc5fecb29 Reviewed-on: https://gerrit.libreoffice.org/15716 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Diffstat (limited to 'vcl/source/window/menufloatingwindow.cxx')
-rw-r--r--vcl/source/window/menufloatingwindow.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/source/window/menufloatingwindow.cxx b/vcl/source/window/menufloatingwindow.cxx
index 3221294687a9..e4a979804ec2 100644
--- a/vcl/source/window/menufloatingwindow.cxx
+++ b/vcl/source/window/menufloatingwindow.cxx
@@ -126,6 +126,7 @@ long MenuFloatingWindow::ImplGetStartY() const
{
for ( sal_uInt16 n = 0; n < nFirstEntry; n++ )
nY += pMenu->GetItemList()->GetDataFromPos( n )->aSz.Height();
+ nY -= pMenu->GetTitleHeight();
}
return -nY;
}