summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/drawvie4.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-09-14 11:12:38 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-09-15 11:12:55 +0200
commit2943c7b1d7b8e6c087f1ad5f1be9ed8f5bbc027c (patch)
treecada5bbdbe77e448be1a3862e39f80fc9bc222e0 /sc/source/ui/view/drawvie4.cxx
parentd39651a69d789522b2faffd01879db25354b9a22 (diff)
ScRangeList::Parse ScDocument* argument dereferenced on all used paths
so nDefaultTab is always used (in ScAcceptChgDlg::FilterHandle pDoc might possibly be null, but that doesn't seem possible in practice) Change-Id: I39ec7f7f96fa2421f492c9e73659abdfba21c3f1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102666 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source/ui/view/drawvie4.cxx')
-rw-r--r--sc/source/ui/view/drawvie4.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/view/drawvie4.cxx b/sc/source/ui/view/drawvie4.cxx
index 5c6364850308..f4331b034f71 100644
--- a/sc/source/ui/view/drawvie4.cxx
+++ b/sc/source/ui/view/drawvie4.cxx
@@ -247,7 +247,7 @@ void getOleSourceRanges(const SdrMarkList& rMarkList, bool& rAnyOle, bool& rOneO
{
ScRangeList aRange;
ScAddress aAddr;
- if (aRange.Parse(rRangeRep, pDoc, pDoc->GetAddressConvention()) & ScRefFlags::VALID)
+ if (aRange.Parse(rRangeRep, *pDoc, pDoc->GetAddressConvention()) & ScRefFlags::VALID)
{
for(size_t i = 0; i < aRange.size(); ++i)
pRanges->push_back(aRange[i]);