[Libreoffice-commits] .: Branch 'libreoffice-3-5' - sc/inc
Eike Rathke
erack at kemper.freedesktop.org
Tue Dec 20 07:02:16 PST 2011
sc/inc/token.hxx | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
New commits:
commit 5077756d82878e6eb3ea5662e37b8470ae14f35c
Author: Eike Rathke <erack at redhat.com>
Date: Tue Dec 20 15:59:34 2011 +0100
another "ScToken::GetDoubleRef: virtual dummy called"
When checking for svSingleRef or svDoubleRef, also check for
svExternalSingleRef or svExternalDoubleRef. Otherwise the dummy reference is
treated.
diff --git a/sc/inc/token.hxx b/sc/inc/token.hxx
index 90c9dfb..fc65823 100644
--- a/sc/inc/token.hxx
+++ b/sc/inc/token.hxx
@@ -455,7 +455,8 @@ class SingleDoubleRefModifier
public:
SingleDoubleRefModifier( ScToken& rT )
{
- if ( rT.GetType() == formula::svSingleRef )
+ formula::StackVar eType = rT.GetType();
+ if ( eType == formula::svSingleRef || eType == formula::svExternalSingleRef )
{
pS = &rT.GetSingleRef();
aDub.Ref1 = aDub.Ref2 = *pS;
@@ -490,8 +491,9 @@ public:
SingleDoubleRefProvider( const ScToken& r )
: Ref1( r.GetSingleRef() ),
- Ref2( r.GetType() == formula::svDoubleRef ?
- r.GetDoubleRef().Ref2 : Ref1 )
+ Ref2( (r.GetType() == formula::svDoubleRef ||
+ r.GetType() == formula::svExternalDoubleRef) ?
+ r.GetDoubleRef().Ref2 : Ref1 )
{}
SingleDoubleRefProvider( const ScSingleRefData& r )
: Ref1( r ), Ref2( r )
More information about the Libreoffice-commits
mailing list