From 47afcf5681559b229f0cffdb3cce8853003268ce Mon Sep 17 00:00:00 2001 From: "hyatt%netscape.com" Date: Sat, 24 Jul 1999 00:32:21 +0000 Subject: [PATCH] oops. crazy_width only defined for debug builds. Changing this. --- layout/html/table/src/FixedTableLayoutStrategy.cpp | 2 +- layout/tables/FixedTableLayoutStrategy.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layout/html/table/src/FixedTableLayoutStrategy.cpp b/layout/html/table/src/FixedTableLayoutStrategy.cpp index caa2e6ad105..3176567187e 100644 --- a/layout/html/table/src/FixedTableLayoutStrategy.cpp +++ b/layout/html/table/src/FixedTableLayoutStrategy.cpp @@ -157,7 +157,7 @@ PRBool FixedTableLayoutStrategy::AssignPreliminaryColumnWidths(nscoord aComputed nscoord lastColAllocated = -1; nscoord remainingWidth = availWidth - totalColWidth; - if (CRAZY_WIDTH(remainingWidth)) { + if (remainingWidth >= 500000) { // let's put a cap on the width so that it doesn't become insane. remainingWidth = 100; } diff --git a/layout/tables/FixedTableLayoutStrategy.cpp b/layout/tables/FixedTableLayoutStrategy.cpp index caa2e6ad105..3176567187e 100644 --- a/layout/tables/FixedTableLayoutStrategy.cpp +++ b/layout/tables/FixedTableLayoutStrategy.cpp @@ -157,7 +157,7 @@ PRBool FixedTableLayoutStrategy::AssignPreliminaryColumnWidths(nscoord aComputed nscoord lastColAllocated = -1; nscoord remainingWidth = availWidth - totalColWidth; - if (CRAZY_WIDTH(remainingWidth)) { + if (remainingWidth >= 500000) { // let's put a cap on the width so that it doesn't become insane. remainingWidth = 100; }