diff options
author | Eike Rathke <erack@redhat.com> | 2011-12-14 19:59:09 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2011-12-14 20:00:45 +0100 |
commit | 87ca88c3994210716b6f4a01b194d03b0cfac3ea (patch) | |
tree | dedf2fcaa905f529cb3e15e54273bb71ec6e93b9 /sc | |
parent | 0d5fde790b19515378c9b11a928603b76ac0b846 (diff) |
ShrinkRefTokenToDataRange:operator(): check if it's really ScDoubleRefToken
Resolved scary "ScToken::GetDoubleRef: virtual dummy called" debug message.
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/unoobj/chart2uno.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sc/source/ui/unoobj/chart2uno.cxx b/sc/source/ui/unoobj/chart2uno.cxx index 97dca67b0857..48651281d6f2 100644 --- a/sc/source/ui/unoobj/chart2uno.cxx +++ b/sc/source/ui/unoobj/chart2uno.cxx @@ -1395,6 +1395,11 @@ public: if (ScRefTokenHelper::isExternalRef(rRef)) return; + // Don't assume an ScDoubleRefToken if it isn't. It can be at least an + // ScSingleRefToken, then there isn't anything to shrink. + if (rRef->GetType() != svDoubleRef) + return; + ScComplexRefData& rData = rRef->GetDoubleRef(); ScSingleRefData& s = rData.Ref1; ScSingleRefData& e = rData.Ref2; |