Index: svx/source/editeng/impedit3.cxx =================================================================== RCS file: /cvs/graphics/svx/source/editeng/impedit3.cxx,v retrieving revision 1.87 diff -u -r1.87 impedit3.cxx --- svx/source/editeng/impedit3.cxx 10 Jun 2003 14:34:03 -0000 1.87 +++ svx/source/editeng/impedit3.cxx 30 Sep 2003 09:58:02 -0000 @@ -681,14 +681,19 @@ sal_uInt16 nPortions = pParaPortion->GetTextPortions().Count(); for ( sal_uInt16 nTP = 0; nTP < nPortions; nTP++ ) { +printf("here we are impedit3 nTP=%d nPortions=%d\n",nTP,nPortions); +printf("step2 nPos=%d nStart=%d nEnd=%d\n",nPos,nStart,nEnd); // Es darf kein Start/Ende im geloeschten Bereich liegen. TextPortion* const pTP = pParaPortion->GetTextPortions()[ nTP ]; nPos += pTP->GetLen(); +printf("step3 nPos=%d nStart=%d nEnd=%d\n",nPos,nStart,nEnd); if ( ( nPos > nStart ) && ( nPos < nEnd ) ) { + printf("in the break if\n"); bQuickFormat = sal_False; break; } + printf("passed the break if\n"); } } } @@ -702,17 +707,20 @@ if ( bEmptyNodeWithPolygon ) { +printf("in here 5\n"); TextPortion* pDummyPortion = new TextPortion( 0 ); pParaPortion->GetTextPortions().Reset(); pParaPortion->GetTextPortions().Insert( pDummyPortion, 0 ); } else if ( bQuickFormat ) { +printf("in here 6\n"); // schnellere Methode: RecalcTextPortion( pParaPortion, nInvalidStart, nInvalidDiff ); } else // nRealInvalidStart kann vor InvalidStart liegen, weil Portions geloescht.... { +printf("in here 7\n"); CreateTextPortions( pParaPortion, nRealInvalidStart ); } @@ -769,9 +777,11 @@ BOOL bForceOneRun = bEmptyNodeWithPolygon; BOOL bCompressedChars = FALSE; +printf(" before the while nIndex = %d pNode->Len()=%d\n",nIndex,pNode->Len()); while ( ( nIndex < pNode->Len() ) || bForceOneRun ) { +printf(" start while: nIndex = %d pNode->Len()=%d\n",nIndex,pNode->Len()); bForceOneRun = FALSE; sal_Bool bEOL = sal_False; @@ -782,6 +792,7 @@ long nStartX = GetXValue( rLRItem.GetTxtLeft() ); if ( nIndex == 0 ) { +printf("if nIndex==0\n"); long nFI = GetXValue( rLRItem.GetTxtFirstLineOfst() ); nStartX += nFI; @@ -791,6 +802,7 @@ if ( pParaPortion->GetBulletX() > nStartX ) nStartX = pParaPortion->GetBulletX(); } + } @@ -908,6 +920,7 @@ EditCharAttrib* pNextFeature = pNode->GetCharAttribs().FindFeature( pLine->GetStart() ); while ( ( nTmpWidth < nXWidth ) && !bEOL && ( nTmpPortion < pParaPortion->GetTextPortions().Count() ) ) { +printf("in while 2\n"); nPortionStart = nTmpPos; pPortion = pParaPortion->GetTextPortions().GetObject( nTmpPortion ); if ( pPortion->GetKind() == PORTIONKIND_HYPHENATOR ) @@ -1558,6 +1571,7 @@ GetRefDevice()->Pop(); GetRefDevice()->SetLayoutMode( nOldLayoutMode ); +printf("here at the end\n"); return bHeightChanged; }