Fixed an assert
git-svn-id: svn://10.0.0.236/trunk@2772 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -852,9 +852,8 @@ PRBool nsSpaceManager::RemoveRegion(nsIFrame* aFrame)
|
||||
if (nsnull != band) {
|
||||
// If we found a rect occupied by aFrame in this band or the previous band
|
||||
// then try to join the two bands
|
||||
if (prevFoundMatchingRect || (foundMatchingRect && (nsnull != prevBand))) {
|
||||
if ((nsnull != prevBand) && (foundMatchingRect || prevFoundMatchingRect)) {
|
||||
// Try and join this band with the previous band
|
||||
NS_ASSERTION(nsnull != prevBand, "no previous band");
|
||||
JoinBands(band, prevBand);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -852,9 +852,8 @@ PRBool nsSpaceManager::RemoveRegion(nsIFrame* aFrame)
|
||||
if (nsnull != band) {
|
||||
// If we found a rect occupied by aFrame in this band or the previous band
|
||||
// then try to join the two bands
|
||||
if (prevFoundMatchingRect || (foundMatchingRect && (nsnull != prevBand))) {
|
||||
if ((nsnull != prevBand) && (foundMatchingRect || prevFoundMatchingRect)) {
|
||||
// Try and join this band with the previous band
|
||||
NS_ASSERTION(nsnull != prevBand, "no previous band");
|
||||
JoinBands(band, prevBand);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user