vcl/source/control/slider.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 659554516df9b24600fe8f5c39e9659bba408396
Author: Caolán McNamara <[email protected]>
AuthorDate: Tue Feb 18 08:10:51 2025 +0000
Commit: Caolán McNamara <[email protected]>
CommitDate: Tue Feb 18 11:37:13 2025 +0100
cid#1642988 Uninitialized scalar field
Change-Id: Ifa99aace590839db618696ce7d068cdd515701ec
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181815
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <[email protected]>
diff --git a/vcl/source/control/slider.cxx b/vcl/source/control/slider.cxx
index 849816e55d50..8531067c8769 100644
--- a/vcl/source/control/slider.cxx
+++ b/vcl/source/control/slider.cxx
@@ -39,6 +39,8 @@
Slider::Slider(vcl::Window* pParent, WinBits nStyle)
: Control(WindowType::SLIDER)
{
+ mnStartPos = 0;
+ mnMouseOff = 0;
mnThumbPixOffset = 0;
mnThumbPixRange = 0;
mnThumbPixPos = 0; // between mnThumbPixOffset and
mnThumbPixOffset+mnThumbPixRange