fix potential 0 deref bug 333351 r/sr=roc
This commit is contained in:
@@ -1140,6 +1140,7 @@ BasicTableLayoutStrategy::AssignNonPctColumnWidths(nscoord aMax
|
||||
nscoord maxPropTotal = 0;
|
||||
for (colX = 0; colX < numEffCols; colX++) {
|
||||
nsTableColFrame* colFrame = mTableFrame->GetColFrame(colX);
|
||||
if (!colFrame) continue;
|
||||
nscoord rawProp = colFrame->GetWidth(MIN_PRO);
|
||||
if (rawProp > 0) {
|
||||
nscoord desWidth = colFrame->GetDesWidth();
|
||||
|
||||
Reference in New Issue
Block a user