diff --git a/layout/generic/nsLineBox.h b/layout/generic/nsLineBox.h index efb2f813e58..c1fbe7da82f 100644 --- a/layout/generic/nsLineBox.h +++ b/layout/generic/nsLineBox.h @@ -1253,7 +1253,7 @@ class nsLineList { void splice(iterator position, self_type& x, iterator i) { NS_ASSERTION(!x.empty(), "Can't insert from empty list."); - NS_ASSERTION(position != i && position != i->_mNext, + NS_ASSERTION(position != i && position.mCurrent != i->_mNext, "We don't check for this case."); // remove from |x| diff --git a/layout/html/base/src/nsLineBox.h b/layout/html/base/src/nsLineBox.h index efb2f813e58..c1fbe7da82f 100644 --- a/layout/html/base/src/nsLineBox.h +++ b/layout/html/base/src/nsLineBox.h @@ -1253,7 +1253,7 @@ class nsLineList { void splice(iterator position, self_type& x, iterator i) { NS_ASSERTION(!x.empty(), "Can't insert from empty list."); - NS_ASSERTION(position != i && position != i->_mNext, + NS_ASSERTION(position != i && position.mCurrent != i->_mNext, "We don't check for this case."); // remove from |x|