diff options
author | Henry Castro <hcastro@collabora.com> | 2020-05-06 14:08:07 -0400 |
---|---|---|
committer | Henry Castro <hcastro@collabora.com> | 2020-05-10 14:15:10 +0200 |
commit | 3164a9a0b7603c0d3ef52bc1ed223ab481294fb3 (patch) | |
tree | e05e453215f505fcdee5e283a47911b366bfb322 /vcl | |
parent | c0f1d703b4d1055768fc0bcbf3884c5d3cf71a1c (diff) |
lok: fix the window type of the formatted field control
Change-Id: Iab87c94ca19314eacec18e71d7d09ba42f1756e7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93778
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/control/fmtfield.cxx | 2 | ||||
-rw-r--r-- | vcl/source/window/window.cxx | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/vcl/source/control/fmtfield.cxx b/vcl/source/control/fmtfield.cxx index 4014e0ebd1e5..1ca963d2b017 100644 --- a/vcl/source/control/fmtfield.cxx +++ b/vcl/source/control/fmtfield.cxx @@ -299,7 +299,7 @@ FormattedField::StaticFormatter::~StaticFormatter() FormattedField::FormattedField(vcl::Window* pParent, WinBits nStyle) - :SpinField(pParent, nStyle) + :SpinField(pParent, nStyle, WindowType::FORMATTEDFIELD) ,m_aLastSelection(0,0) ,m_dMinValue(0) ,m_dMaxValue(0) diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx index 0a4a79a16d15..10638fa43957 100644 --- a/vcl/source/window/window.cxx +++ b/vcl/source/window/window.cxx @@ -3304,6 +3304,7 @@ const char* windowTypeName(WindowType nWindowType) case WindowType::PATTERNFIELD: return "patternfield"; case WindowType::NUMERICFIELD: return "numericfield"; case WindowType::METRICFIELD: return "metricfield"; + case WindowType::FORMATTEDFIELD: return "formattedfield"; case WindowType::CURRENCYFIELD: return "currencyfield"; case WindowType::DATEFIELD: return "datefield"; case WindowType::TIMEFIELD: return "timefield"; |