Kaydet (Commit) 73979f5a authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Initialize ImplCursorData members as required

mbCurVisible is immediately read in ImplPrepForDraw, which inits some more
members but not mnStyle which is then read in ImplCursorInvert.  Regression
introduced with b9c10ee9 "weld
ClassificationDialog", found when valgrind'ing UITest_classification.

Change-Id: I986af0531e250953b8e45c914997b31c53a9ba91
Reviewed-on: https://gerrit.libreoffice.org/70876
Tested-by: Jenkins
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst 884ad0d1
...@@ -163,6 +163,8 @@ void vcl::Cursor::ImplDraw() ...@@ -163,6 +163,8 @@ void vcl::Cursor::ImplDraw()
void vcl::Cursor::DrawToDevice(OutputDevice& rRenderContext) void vcl::Cursor::DrawToDevice(OutputDevice& rRenderContext)
{ {
ImplCursorData aData; ImplCursorData aData;
aData.mnStyle = 0;
aData.mbCurVisible = false;
// calculate output area // calculate output area
if (ImplPrepForDraw(&rRenderContext, aData)) if (ImplPrepForDraw(&rRenderContext, aData))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment