resolved fdo#77018 keep external references intact during sort

Needs e463de2a56 fix for fdo#79441 to
work.

Change-Id: Ide1cbeb4b25b17b5102977ccbdf8e6dbfcadfc60
This commit is contained in:
Eike Rathke
2014-07-11 23:15:50 +02:00
parent 9af1cbf233
commit db0a4c2575

View File

@@ -522,6 +522,9 @@ bool ScToken::Is3DRef() const
if ( GetSingleRef().IsFlag3D() )
return true;
break;
case svExternalSingleRef:
case svExternalDoubleRef:
return true;
default:
{
// added to avoid warnings
@@ -2236,6 +2239,20 @@ void ScTokenArray::ReadjustRelative3DReferences( const ScAddress& rOldPos,
}
}
break;
case svExternalDoubleRef :
{
ScSingleRefData& rRef2 = static_cast<ScToken*>(pCode[j])->GetSingleRef2();
ScAddress aAbs = rRef2.toAbs(rOldPos);
rRef2.SetAddress(aAbs, rNewPos);
}
//! fallthru
case svExternalSingleRef :
{
ScSingleRefData& rRef1 = static_cast<ScToken*>(pCode[j])->GetSingleRef();
ScAddress aAbs = rRef1.toAbs(rOldPos);
rRef1.SetAddress(aAbs, rNewPos);
}
break;
default:
{
// added to avoid warnings