Removed some more warnings

This commit is contained in:
kipp@netscape.com
1999-10-22 14:51:41 +00:00
parent 85eca94317
commit e01a845da1
12 changed files with 30 additions and 42 deletions
@@ -757,18 +757,18 @@ nscoord BasicTableLayoutStrategy::AssignPercentageColumnWidths(nscoord aBasisIn,
nscoord otherDesWidth = 0;
PRInt32 colX2;
for (colX2 = 0; colX2 < colX; colX2++) {
nsTableColFrame* colFrame = mTableFrame->GetColFrame(colX2);
nscoord prefWidth = colFrame->GetFixWidth();
nsTableColFrame* colX2Frame = mTableFrame->GetColFrame(colX2);
nscoord prefWidth = colX2Frame->GetFixWidth();
if (prefWidth <= 0) {
prefWidth = colFrame->GetDesWidth();
prefWidth = colX2Frame->GetDesWidth();
}
otherDesWidth += prefWidth;
}
for (colX2 = colX + colSpan; colX2 < mNumCols; colX2++) {
nsTableColFrame* colFrame = mTableFrame->GetColFrame(colX2);
nscoord prefWidth = colFrame->GetFixWidth();
nsTableColFrame* colX2Frame = mTableFrame->GetColFrame(colX2);
nscoord prefWidth = colX2Frame->GetFixWidth();
if (prefWidth <= 0) {
prefWidth = colFrame->GetDesWidth();
prefWidth = colX2Frame->GetDesWidth();
}
otherDesWidth += prefWidth;
}