Patch for table bug on macrumors/macslash
David Hyatt
hyatt@apple.com
Tue, 14 Jan 2003 17:25:27 -0800
--Apple-Mail-2--137781714
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
format=flowed
Does this look even remotely correct? It fixes the bug, but it may not
be the right fix.
dave
--Apple-Mail-2--137781714
Content-Disposition: attachment;
filename=diff.txt
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
x-unix-mode=0644;
name="diff.txt"
--- khtml/rendering/table_layout.cpp Tue Jan 14 17:21:38 2003
+++ /Users/hyatt/kde/kdelibs/khtml/rendering/table_layout.cpp Fri Jan 10 09:41:57 2003
@@ -539,12 +539,10 @@
}
int totalpct = totalPercent();
- if (totalpct >= 100)
- totalpct = 99;
-
- maxNonPercent = (maxNonPercent * 100 + 50) / (100-totalpct);
+ if ( totalpct < 100 ) {
+ maxNonPercent = (maxNonPercent * 100 + 50) / (100-totalpct);
maxWidth = kMax( maxNonPercent, maxWidth );
-
+ }
maxWidth = kMax( maxWidth, maxPercent );
maxWidth = kMax( maxWidth, spanMaxWidth );
--Apple-Mail-2--137781714
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
format=flowed
--Apple-Mail-2--137781714--