summaryrefslogtreecommitdiff
path: root/vcl/source/window/toolbox.cxx
diff options
context:
space:
mode:
authorXisco Faulí <xiscofauli@libreoffice.org>2019-01-17 12:00:59 +0100
committerXisco Faulí <xiscofauli@libreoffice.org>2019-01-17 15:19:41 +0100
commit59647fa4d190622cc6aae873de06a4dfe973bd54 (patch)
tree7098539e5b0094080ceb273ae13bdaa8a9698b72 /vcl/source/window/toolbox.cxx
parent2f7e02e71939e79f07fd6cc9cbb697729e077bc0 (diff)
tdf#122761: Revert "Resolves tdf#122118 - Toolbar dropdown button triangles are too large"
This reverts commit b56ad2a1292b01647c4ee1f4364f7c4aa20fc449. Change-Id: I0fa94c4a027a85a14e85c53a18443d97fa862a59 Reviewed-on: https://gerrit.libreoffice.org/66507 Reviewed-by: Heiko Tietze <tietze.heiko@gmail.com> Tested-by: Xisco Faulí <xiscofauli@libreoffice.org>
Diffstat (limited to 'vcl/source/window/toolbox.cxx')
-rw-r--r--vcl/source/window/toolbox.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx
index 9533784c0dab..4d203c6b9186 100644
--- a/vcl/source/window/toolbox.cxx
+++ b/vcl/source/window/toolbox.cxx
@@ -2492,12 +2492,9 @@ static void ImplDrawDropdownArrow(vcl::RenderContext& rRenderContext, const tool
float fScaleFactor = rRenderContext.GetDPIScaleFactor();
tools::Polygon aPoly(4);
- int iTBHeight = rRenderContext.GetOutputSize().Height(); //scale triangle depending on theme/toolbar height
- long width = round(iTBHeight/5.5) * fScaleFactor; // 7 for gtk, 5 for gen
- long height = round(iTBHeight/9.5) * fScaleFactor; // 4 for gtk, 3 for gen
- if (width < 4) width = 4;
- if (height < 3) height = 3;
+ long width = 7 * fScaleFactor;
+ long height = 4 * fScaleFactor;
long x = rDropDownRect.Left() + (rDropDownRect.getWidth() - width)/2;
long y = rDropDownRect.Top() + (rDropDownRect.getHeight() - height)/2;