include/tools/wintypes.hxx | 1 + vcl/source/control/fmtfield.cxx | 2 +- vcl/source/window/window.cxx | 1 + 3 files changed, 3 insertions(+), 1 deletion(-)
New commits: commit 2a694f9e0e7789b4b3b792a9eedd29366fa10c1c Author: Henry Castro <hcas...@collabora.com> AuthorDate: Wed May 6 14:08:07 2020 -0400 Commit: Henry Castro <hcas...@collabora.com> CommitDate: Mon May 11 02:30:41 2020 +0200 lok: fix the window type of the formatted field control Change-Id: Iab87c94ca19314eacec18e71d7d09ba42f1756e7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93586 Tested-by: Jenkins Reviewed-by: Henry Castro <hcas...@collabora.com> diff --git a/include/tools/wintypes.hxx b/include/tools/wintypes.hxx index b3457240e040..865d62c9e802 100644 --- a/include/tools/wintypes.hxx +++ b/include/tools/wintypes.hxx @@ -69,6 +69,7 @@ enum class WindowType : sal_uInt16 PATTERNFIELD , NUMERICFIELD , // 40 (344) METRICFIELD , + FORMATTEDFIELD , CURRENCYFIELD , DATEFIELD , TIMEFIELD , diff --git a/vcl/source/control/fmtfield.cxx b/vcl/source/control/fmtfield.cxx index ba50e98f4c11..6ed2424dd9f0 100644 --- a/vcl/source/control/fmtfield.cxx +++ b/vcl/source/control/fmtfield.cxx @@ -296,7 +296,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 95466d4695d4..5e70e2674f95 100644 --- a/vcl/source/window/window.cxx +++ b/vcl/source/window/window.cxx @@ -3364,6 +3364,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"; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits