diff options
author | Henry Castro <hcastro@collabora.com> | 2020-04-23 11:14:16 -0400 |
---|---|---|
committer | Henry Castro <hcastro@collabora.com> | 2020-04-28 04:54:13 +0200 |
commit | 6d277f19c30709e823de6b94e5b11532f99fd092 (patch) | |
tree | c6c0a868f73c89852312d6eed62e25132601f6aa /vcl | |
parent | 08dbff244c6b58e34ca9658b7405b641fcaaffec (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>
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 abdcaa798bc6..5735c000b47c 100644 --- a/vcl/source/control/field.cxx +++ b/vcl/source/control/field.cxx @@ -1570,7 +1570,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 acc132e537f2..dd6d22502974 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); |