summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Timofeev <timofeev.i.s@gmail.com>2013-11-05 21:50:34 +0400
committerIvan Timofeev <timofeev.i.s@gmail.com>2013-11-05 21:51:58 +0400
commit0340125f912294c76ab409480f5aadecf8aada04 (patch)
tree372662be521d1bdf632bd909c55959c18ef392c7
parent2d793b1a7f08e2f42a8e9bd96b7470e15784f7cf (diff)
fdo#71120: use native checkbox height
Change-Id: I5d112660015f993856b0709f6a5db2baf521d745
-rw-r--r--sc/source/ui/cctrl/checklistmenu.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/cctrl/checklistmenu.cxx b/sc/source/ui/cctrl/checklistmenu.cxx
index 30b4b0cd3f7c..2cde8eb453ea 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;