[Libreoffice-commits] .: sc/source
Eike Rathke
erack at kemper.freedesktop.org
Wed Dec 14 11:00:52 PST 2011
sc/source/ui/unoobj/chart2uno.cxx | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit 87ca88c3994210716b6f4a01b194d03b0cfac3ea
Author: Eike Rathke <erack at redhat.com>
Date: Wed Dec 14 19:59:09 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 97dca67..4865128 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;
More information about the Libreoffice-commits
mailing list