summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/FileDefinitionWidgetDraw.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/gdi/FileDefinitionWidgetDraw.cxx')
-rw-r--r--vcl/source/gdi/FileDefinitionWidgetDraw.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/vcl/source/gdi/FileDefinitionWidgetDraw.cxx b/vcl/source/gdi/FileDefinitionWidgetDraw.cxx
index e5dc455fd9cc..393fab87c7b0 100644
--- a/vcl/source/gdi/FileDefinitionWidgetDraw.cxx
+++ b/vcl/source/gdi/FileDefinitionWidgetDraw.cxx
@@ -690,9 +690,11 @@ bool FileDefinitionWidgetDraw::getNativeControlRegion(
return false;
Size aButtonSizeDown(pButtonDownPart->mnWidth, pButtonDownPart->mnHeight);
- OString sOrientation = "decrease-edit-increase";
+ auto const& pEntirePart
+ = m_pWidgetDefinition->getDefinition(eType, ControlPart::Entire);
+ OString sOrientation = pEntirePart->msOrientation;
- if (sOrientation == "decrease-edit-increase")
+ if (sOrientation.isEmpty() || sOrientation == "decrease-edit-increase")
{
if (ePart == ControlPart::ButtonUp)
{
@@ -728,7 +730,7 @@ bool FileDefinitionWidgetDraw::getNativeControlRegion(
return true;
}
}
- else
+ else if (sOrientation == "edit-decrease-increase")
{
if (ePart == ControlPart::ButtonUp)
{