[Libreoffice-commits] core.git: sc/source
Ivan Timofeev
timofeev.i.s at gmail.com
Tue Nov 5 18:53:10 CET 2013
sc/source/ui/cctrl/checklistmenu.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 0340125f912294c76ab409480f5aadecf8aada04
Author: Ivan Timofeev <timofeev.i.s at gmail.com>
Date: Tue Nov 5 21:50:34 2013 +0400
fdo#71120: use native checkbox height
Change-Id: I5d112660015f993856b0709f6a5db2baf521d745
diff --git a/sc/source/ui/cctrl/checklistmenu.cxx b/sc/source/ui/cctrl/checklistmenu.cxx
index 30b4b0c..2cde8eb 100644
--- a/sc/source/ui/cctrl/checklistmenu.cxx
+++ b/sc/source/ui/cctrl/checklistmenu.cxx
@@ -970,7 +970,7 @@ void ScCheckListMenuWindow::getSectionPosSize(
break;
case CHECK_TOGGLE_ALL:
{
- long h = nLabelHeight*3/2; // check box height is heuristically 150% of the text height.
+ long h = std::min(maChkToggleAll.CalcMinimumSize().Height(), 26L);
rPos = Point(nListBoxMargin, nSingleBtnAreaY);
rPos.X() += 5;
rPos.Y() += (nSingleItemBtnAreaHeight - h)/2;
More information about the Libreoffice-commits
mailing list