diff --git a/mozilla/layout/generic/nsColumnSetFrame.cpp b/mozilla/layout/generic/nsColumnSetFrame.cpp index 4cdfbe9e39b..b8d620a9d79 100644 --- a/mozilla/layout/generic/nsColumnSetFrame.cpp +++ b/mozilla/layout/generic/nsColumnSetFrame.cpp @@ -438,7 +438,7 @@ nsColumnSetFrame::ReflowChildren(nsHTMLReflowMetrics& aDesiredSize, #endif } } - int columnCount = 0; + int columnCount = 0; // ignores overflow container columns; they don't affect balancing PRBool reflowNext = PR_FALSE; while (child) { @@ -549,7 +549,8 @@ nsColumnSetFrame::ReflowChildren(nsHTMLReflowMetrics& aDesiredSize, NS_ASSERTION(!kidNextInFlow, "next in flow should have been deleted"); break; } else { - ++columnCount; + if (NS_FRAME_IS_NOT_COMPLETE(aStatus)) // don't increment for overflow containers + ++columnCount; // Make sure that the column has a next-in-flow. If not, we must // create one to hold the overflowing stuff, even if we're just // going to put it on our overflow list and let *our*