diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-09-14 11:12:38 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-09-15 11:12:55 +0200 |
commit | 2943c7b1d7b8e6c087f1ad5f1be9ed8f5bbc027c (patch) | |
tree | cada5bbdbe77e448be1a3862e39f80fc9bc222e0 /sc/source/ui/view/drawvie4.cxx | |
parent | d39651a69d789522b2faffd01879db25354b9a22 (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.cxx | 2 |
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]); |