Fixing orange (casting a nsTableColFrame* to nsTableColGroupFrame* doesn't

really work...).  Patch suggested by bryner, r=me.
This commit is contained in:
bzbarsky%mit.edu 2003-07-07 04:57:56 +00:00
Родитель ad13547c26
Коммит 5c861d776b
2 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -157,7 +157,8 @@ nsTableColGroupFrame::FindParentForAppendedCol(nsTableFrame* aTableFrame,
nsIFrame* lastColGroup = lastCol->GetParent();
if (!lastColGroup) return nsnull; // shouldn't happen
nsTableColGroupFrame* relevantColGroup = (nsTableColGroupFrame *)lastCol;
nsTableColGroupFrame* relevantColGroup =
NS_STATIC_CAST(nsTableColGroupFrame *, lastColGroup);
nsTableColGroupType relevantColGroupType = relevantColGroup->GetType();
if (eColGroupAnonymousCell == relevantColGroupType) {
if (eColAnonymousCell == aColType) {

Просмотреть файл

@ -157,7 +157,8 @@ nsTableColGroupFrame::FindParentForAppendedCol(nsTableFrame* aTableFrame,
nsIFrame* lastColGroup = lastCol->GetParent();
if (!lastColGroup) return nsnull; // shouldn't happen
nsTableColGroupFrame* relevantColGroup = (nsTableColGroupFrame *)lastCol;
nsTableColGroupFrame* relevantColGroup =
NS_STATIC_CAST(nsTableColGroupFrame *, lastColGroup);
nsTableColGroupType relevantColGroupType = relevantColGroup->GetType();
if (eColGroupAnonymousCell == relevantColGroupType) {
if (eColAnonymousCell == aColType) {