adapt DBG_UTIL code to previous commit
Change-Id: I021b4d70a02de7a66e0af82a859ae89e1a7d1231
This commit is contained in:
parent
d69fdd1ed6
commit
7092fc0300
3 changed files with 9 additions and 5 deletions
|
@ -1679,8 +1679,10 @@ void SwHTMLTableLayout::SetWidths( sal_Bool bCallPass2, sal_uInt16 nAbsAvail,
|
|||
// check if the tables have correct widths
|
||||
SwTwips nSize = pSwTable->GetFrmFmt()->GetFrmSize().GetWidth();
|
||||
const SwTableLines& rLines = pSwTable->GetTabLines();
|
||||
for( sal_uInt16 n = 0; n < rLines.Count(); ++n )
|
||||
for (size_t n = 0; n < rLines.size(); ++n)
|
||||
{
|
||||
_CheckBoxWidth( *rLines[ n ], nSize );
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
@ -196,7 +196,7 @@ void _CheckBoxWidth( const SwTableLine& rLine, SwTwips nSize );
|
|||
#define CHECKBOXWIDTH \
|
||||
{ \
|
||||
SwTwips nSize = GetFrmFmt()->GetFrmSize().GetWidth(); \
|
||||
for( sal_uInt16 nTmp = 0; nTmp < aLines.Count(); ++nTmp ) \
|
||||
for (size_t nTmp = 0; nTmp < aLines.size(); ++nTmp) \
|
||||
::_CheckBoxWidth( *aLines[ nTmp ], nSize ); \
|
||||
}
|
||||
|
||||
|
@ -721,12 +721,12 @@ sal_Bool SwTable::AppendRow( SwDoc* pDoc, sal_uInt16 nCnt )
|
|||
// Find all Boxes/Lines
|
||||
_FndBox aFndBox( 0, 0 );
|
||||
{
|
||||
const SwTableLine* pLLine = GetTabLines().back();
|
||||
SwTableLine* pLLine = GetTabLines().back();
|
||||
|
||||
const SwSelBoxes* pBxs = 0; // Dummy!!!
|
||||
_FndPara aPara( *pBxs, &aFndBox );
|
||||
|
||||
_FndBoxAppendRowLine( (SwTableLine*)pLLine, &aPara );
|
||||
_FndBoxAppendRowLine(pLLine, &aPara);
|
||||
}
|
||||
if( aFndBox.GetLines().empty() )
|
||||
return sal_False;
|
||||
|
|
|
@ -1059,8 +1059,10 @@ void SwTable::SetTabCols( const SwTabCols &rNew, const SwTabCols &rOld,
|
|||
extern void _CheckBoxWidth( const SwTableLine&, SwTwips );
|
||||
// checke doch mal ob die Tabellen korrekte Breiten haben
|
||||
SwTwips nSize = GetFrmFmt()->GetFrmSize().GetWidth();
|
||||
for( sal_uInt16 n = 0; n < aLines.Count(); ++n )
|
||||
for (size_t n = 0; n < aLines.size(); ++n)
|
||||
{
|
||||
_CheckBoxWidth( *aLines[ n ], nSize );
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue