sc/source/ui/unoobj/chart2uno.cxx | 5 +++++ 1 file changed, 5 insertions(+)
New commits: commit 08a5b8d650313d60e0e5e6abb15335495867cda5 Author: Eike Rathke <er...@redhat.com> Date: Wed Dec 14 19:59:32 2011 +0100 ShrinkRefTokenToDataRange:operator(): check if it's really ScDoubleRefToken Resolved scary "ScToken::GetDoubleRef: virtual dummy called" debug message. diff --git a/sc/source/ui/unoobj/chart2uno.cxx b/sc/source/ui/unoobj/chart2uno.cxx index 3852e3b..9aabfff 100644 --- a/sc/source/ui/unoobj/chart2uno.cxx +++ b/sc/source/ui/unoobj/chart2uno.cxx @@ -1400,6 +1400,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; _______________________________________________ Libreoffice-commits mailing list Libreoffice-commits@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits