From e2d02a4814189665d459d9e14cc90982097c0548 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Thu, 5 Nov 2015 15:53:27 +0100 Subject: [PATCH] Draw alien arrow on trace precedents (#63087) Change-Id: I82deb8a1e515d8fea71ce91520505e252f4ad07d --- sc/source/core/tool/detfunc.cxx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/sc/source/core/tool/detfunc.cxx b/sc/source/core/tool/detfunc.cxx index f8ed508..ff04500 100644 --- a/sc/source/core/tool/detfunc.cxx +++ b/sc/source/core/tool/detfunc.cxx @@ -610,10 +610,21 @@ bool ScDetectiveFunc::DrawEntry( SCCOL nCol, SCROW nRow, bool bError = HasError( rRef, aErrorPos ); bool bAlien = ( rRef.aEnd.Tab() < nTab || rRef.aStart.Tab() > nTab ); - return InsertArrow( nCol, nRow, + bool success = InsertArrow( nCol, nRow, rRef.aStart.Col(), rRef.aStart.Row(), rRef.aEnd.Col(), rRef.aEnd.Row(), bAlien, bError, rData ); + if ( bAlien ) + { + success &= ScDetectiveFunc(pDoc, rRef.aEnd.Tab()) + .InsertToOtherTab( rRef.aStart.Col(), + rRef.aStart.Row(), + rRef.aEnd.Col(), + rRef.aEnd.Row(), + false, rData ); + } + + return success; } bool ScDetectiveFunc::DrawAlienEntry( const ScRange& rRef, -- 1.9.1