summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorHenry Castro <hcastro@collabora.com>2020-05-06 14:08:07 -0400
committerHenry Castro <hcastro@collabora.com>2020-05-11 02:30:41 +0200
commit2a694f9e0e7789b4b3b792a9eedd29366fa10c1c (patch)
tree81abb7c6da700a03897989608c7b579321ffb1b1 /vcl
parent0e3196c49b84651df20b770d5cd7f0bbb19dfc40 (diff)
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 <hcastro@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/control/fmtfield.cxx2
-rw-r--r--vcl/source/window/window.cxx1
2 files changed, 2 insertions, 1 deletions
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";