summaryrefslogtreecommitdiff
path: root/vcl/source/control/edit.cxx
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2020-05-29 16:53:59 +0200
committerMichael Weghorn <m.weghorn@posteo.de>2020-05-29 20:22:35 +0200
commit33cac418db78f64f7fa84b8e65c01c2b02cf17a7 (patch)
tree79122c50699dd85dff999e1d3b39f1632463b2ec /vcl/source/control/edit.cxx
parentdee02bb5cfcd8f5835ec406a5f89ddb149d9a767 (diff)
tdf#133498 Make native drawing of FormattedField work (again)
Commit 2a694f9e0e7789b4b3b792a9eedd29366fa10c1c ("lok: fix the window type of the formatted field control", 2020-05-06) had introduced the new 'WindowType::FORMATTEDFIELD' and sets it for the 'FormattedField' control, instead of using the previous default value set in the 'SpinField' ctor, which is 'WindowType::SPINFIELD'. This commit adds the corresponding 'WindowType::FORMATTEDFIELD' cases relevant to make native drawing of the control work (again). Also map the corresponding accessibility roles. Change-Id: Ied0b0548c03dee3feaf1b6252c81b2a33b68b938 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95156 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'vcl/source/control/edit.cxx')
-rw-r--r--vcl/source/control/edit.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx
index fe79d666f68a..000b660ca04a 100644
--- a/vcl/source/control/edit.cxx
+++ b/vcl/source/control/edit.cxx
@@ -954,6 +954,7 @@ ControlType Edit::ImplGetNativeControlType() const
case WindowType::LONGCURRENCYFIELD:
case WindowType::NUMERICFIELD:
case WindowType::SPINFIELD:
+ case WindowType::FORMATTEDFIELD:
if (pControl->GetStyle() & WB_SPIN)
nCtrl = ControlType::Spinbox;
else