include/vcl/spinfld.hxx | 2 +- vcl/source/control/field.cxx | 2 +- vcl/source/control/spinfld.cxx | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-)
New commits: commit 6d277f19c30709e823de6b94e5b11532f99fd092 Author: Henry Castro <hcas...@collabora.com> AuthorDate: Thu Apr 23 11:14:16 2020 -0400 Commit: Henry Castro <hcas...@collabora.com> CommitDate: Tue Apr 28 04:54:13 2020 +0200 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 <jenkinscollaboraoff...@gmail.com> Reviewed-by: Henry Castro <hcas...@collabora.com> diff --git a/include/vcl/spinfld.hxx b/include/vcl/spinfld.hxx index 482adf40e62c..cbf9f8bde2d0 100644 --- a/include/vcl/spinfld.hxx +++ b/include/vcl/spinfld.hxx @@ -29,7 +29,7 @@ class VCL_DLLPUBLIC SpinField : public Edit { public: - explicit SpinField( vcl::Window* pParent, WinBits nWinStyle ); + explicit SpinField( vcl::Window* pParent, WinBits nWinStyle, WindowType nType = WindowType::SPINFIELD ); virtual ~SpinField() override; virtual void dispose() override; 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); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits