[Libreoffice-commits] core.git: sc/source

Eike Rathke erack at redhat.com
Thu Mar 24 11:36:24 UTC 2016


 sc/source/core/data/formulacell.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e3d81079cb97989086647d8419b6d423713e2319
Author: Eike Rathke <erack at redhat.com>
Date:   Thu Mar 24 12:08:48 2016 +0100

    use FindRangeNameByIndexAndSheet()
    
    Change-Id: I94c0ba0d613e235c538cd7bdd3c36c98618fec42

diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx
index 679bd97..6b72743 100644
--- a/sc/source/core/data/formulacell.cxx
+++ b/sc/source/core/data/formulacell.cxx
@@ -961,7 +961,7 @@ ScFormulaCell::ScFormulaCell( const ScFormulaCell& rCell, ScDocument& rDoc, cons
             }
             else if ( t->GetType() == svIndex )
             {
-                ScRangeData* pRangeData = rDoc.GetRangeName()->findByIndex( t->GetIndex() );
+                const ScRangeData* pRangeData = rDoc.FindRangeNameByIndexAndSheet( t->GetIndex(), t->GetSheet());
                 if( pRangeData )
                 {
                     if( pRangeData->HasReferences() )


More information about the Libreoffice-commits mailing list