summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-01-23 20:57:57 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-01-24 20:11:18 +0100
commit18c5fc0a115b483aca021d7f58dca6096659773b (patch)
tree424a17c2b9087f588e762b38cf888dd0ec423f0c
parentd1a4a2543f6e8c19de3dcff11c8b5b39966d7fba (diff)
cid#984146 return of Uninitialized pointer field
since... commit 3d2a431da1126f4924f6cd7e5abac6488cd480e7 Date: Thu Jan 7 19:07:23 2021 +0100 tdf#139115 vcl tree list: add new toggle behaviors I have some remaining concern that m_pCursorOld can end up pointing to a deleted row Change-Id: If5cc9e7fbf16fbd64cdbb6c7843d148c051ee68c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109843 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--vcl/source/treelist/svimpbox.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/source/treelist/svimpbox.cxx b/vcl/source/treelist/svimpbox.cxx
index d72de8763981..7d9bfbcfefb3 100644
--- a/vcl/source/treelist/svimpbox.cxx
+++ b/vcl/source/treelist/svimpbox.cxx
@@ -83,6 +83,7 @@ SvImpLBox::SvImpLBox( SvTreeListBox* pLBView, SvTreeList* pLBTree, WinBits nWinS
m_pStartEntry = nullptr;
m_pCursor = nullptr;
+ m_pCursorOld = nullptr;
m_pAnchor = nullptr;
m_nVisibleCount = 0; // number of rows of data in control
m_nNodeBmpTabDistance = NODE_BMP_TABDIST_NOTVALID;
@@ -245,6 +246,7 @@ void SvImpLBox::Clear()
m_pView->HideFocus();
m_pCursor = nullptr;
}
+ m_pCursorOld = nullptr;
m_aVerSBar->Hide();
m_aVerSBar->SetThumbPos( 0 );
Range aRange( 0, 0 );