Kaydet (Commit) 6db5e1bd authored tarafından Eike Rathke's avatar Eike Rathke

Related: tdf#117016 DoubleRefToVars: always put in order

... as all callers expect, whatever dynamic range creating process
may have created it.

Change-Id: I47b2e174d5bf4d5c23f10685526b48eee07dd6a4
Reviewed-on: https://gerrit.libreoffice.org/57567Reviewed-by: 's avatarEike Rathke <erack@redhat.com>
Tested-by: Jenkins
üst 7d266851
...@@ -949,6 +949,12 @@ void ScInterpreter::DoubleRefToVars( const formula::FormulaToken* p, ...@@ -949,6 +949,12 @@ void ScInterpreter::DoubleRefToVars( const formula::FormulaToken* p,
const ScComplexRefData& rCRef = *p->GetDoubleRef(); const ScComplexRefData& rCRef = *p->GetDoubleRef();
SingleRefToVars( rCRef.Ref1, rCol1, rRow1, rTab1); SingleRefToVars( rCRef.Ref1, rCol1, rRow1, rTab1);
SingleRefToVars( rCRef.Ref2, rCol2, rRow2, rTab2); SingleRefToVars( rCRef.Ref2, rCol2, rRow2, rTab2);
if (rCol2 < rCol1)
std::swap( rCol2, rCol1);
if (rRow2 < rRow1)
std::swap( rRow2, rRow1);
if (rTab2 < rTab1)
std::swap( rTab2, rTab1);
if (!pDok->m_TableOpList.empty()) if (!pDok->m_TableOpList.empty())
{ {
ScRange aRange( rCol1, rRow1, rTab1, rCol2, rRow2, rTab2 ); ScRange aRange( rCol1, rRow1, rTab1, rCol2, rRow2, rTab2 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment