Kaydet (Commit) ffc3876a authored tarafından Caolán McNamara's avatar Caolán McNamara Kaydeden (comit) Eike Rathke

test should check that all levels are equal

regression from

commit bf586deb
Author: Matteo Casalin <matteo.casalin@yahoo.com>
Date:   Sat Feb 21 12:38:54 2015 +0100

    Simplify

Change-Id: I09f83b2bab053fcd48fe1a1a4184cc11a4f9d663
(cherry picked from commit 8a01693c)
Reviewed-on: https://gerrit.libreoffice.org/17233Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarEike Rathke <erack@redhat.com>
üst f838b4f5
...@@ -654,13 +654,17 @@ static SwTextNode* lcl_FindOutlineNum( const SwOutlineNodes& rOutlNds, OUString& ...@@ -654,13 +654,17 @@ static SwTextNode* lcl_FindOutlineNum( const SwOutlineNodes& rOutlNds, OUString&
const SwNodeNum & rNdNum = *(pNd->GetNum()); const SwNodeNum & rNdNum = *(pNd->GetNum());
SwNumberTree::tNumberVector aLevelVal = rNdNum.GetNumberVector(); SwNumberTree::tNumberVector aLevelVal = rNdNum.GetNumberVector();
// now compare with the one searched for // now compare with the one searched for
bool bEqual = true;
for( int n = 0; n < nLevel; ++n ) for( int n = 0; n < nLevel; ++n )
{ {
if ( aLevelVal[n] == nLevelVal[n] ) if ( aLevelVal[n] != nLevelVal[n] )
{ {
return pNd; bEqual = false;
break;
} }
} }
if (bEqual)
return pNd;
} }
else else
{ {
......
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