diff options
author | Henry Castro <hcastro@collabora.com> | 2020-04-23 11:14:16 -0400 |
---|---|---|
committer | Henry Castro <hcastro@collabora.com> | 2020-05-09 14:57:23 +0200 |
commit | 0d27ca61ca922142178aee0d34d7359605619cf5 (patch) | |
tree | 1ee3b3254fb90dd48cf6712f1ffd9309e4aa8a48 /vcl | |
parent | aa04c3754311bded8dcc47863376191f2fe37b98 (diff) |
lok: fix the window type of the metric field control
Change-Id: I286be638a562e3042c1c91e40cb60a9c98938360
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92796
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93071
Tested-by: Jenkins
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/control/field.cxx | 2 | ||||
-rw-r--r-- | vcl/source/control/spinfld.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/control/field.cxx b/vcl/source/control/field.cxx index e6a4e96598ed..c7d088d643b5 100644 --- a/vcl/source/control/field.cxx +++ b/vcl/source/control/field.cxx @@ -1548,7 +1548,7 @@ sal_Int64 MetricFormatter::GetCorrectedValue( FieldUnit eOutUnit ) const } MetricField::MetricField(vcl::Window* pParent, WinBits nWinStyle) - : SpinField(pParent, nWinStyle) + : SpinField(pParent, nWinStyle, WindowType::METRICFIELD) , MetricFormatter(this) { Reformat(); diff --git a/vcl/source/control/spinfld.cxx b/vcl/source/control/spinfld.cxx index f90235d72659..2d91b22201da 100644 --- a/vcl/source/control/spinfld.cxx +++ b/vcl/source/control/spinfld.cxx @@ -337,8 +337,8 @@ void SpinField::ImplInit(vcl::Window* pParent, WinBits nWinStyle) } } -SpinField::SpinField(vcl::Window* pParent, WinBits nWinStyle) : - Edit(WindowType::SPINFIELD) +SpinField::SpinField(vcl::Window* pParent, WinBits nWinStyle, WindowType nType) : + Edit(nType) { ImplInitSpinFieldData(); ImplInit(pParent, nWinStyle); |