summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2019-11-16 11:01:38 +0100
committerTomaž Vajngerl <quikee@gmail.com>2019-11-16 20:25:02 +0100
commit9aab980711f82471b012b1691699d9a28ef836f5 (patch)
treed8ac44e638ff6996b1e5ce397e9eff9214378d84
parentd6f00ac943fbcdc56e828db0c9ff96337c1e74f7 (diff)
widget theme: allow for default "stacked" spinbuttons
Change-Id: I2943616a641de72a615f57784e8a9927c12edcf7 Reviewed-on: https://gerrit.libreoffice.org/82979 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
-rw-r--r--vcl/source/gdi/FileDefinitionWidgetDraw.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/vcl/source/gdi/FileDefinitionWidgetDraw.cxx b/vcl/source/gdi/FileDefinitionWidgetDraw.cxx
index 0eb0484d4cbe..3d650719eb79 100644
--- a/vcl/source/gdi/FileDefinitionWidgetDraw.cxx
+++ b/vcl/source/gdi/FileDefinitionWidgetDraw.cxx
@@ -737,9 +737,14 @@ bool FileDefinitionWidgetDraw::getNativeControlRegion(
auto const& pEntirePart
= m_pWidgetDefinition->getDefinition(eType, ControlPart::Entire);
+
OString sOrientation = pEntirePart->msOrientation;
- if (sOrientation.isEmpty() || sOrientation == "decrease-edit-increase")
+ if (sOrientation.isEmpty() || sOrientation == "stacked")
+ {
+ return false;
+ }
+ else if (sOrientation == "decrease-edit-increase")
{
if (ePart == ControlPart::ButtonUp)
{