| Summary: | BIDI text overlapping inside tables | ||
|---|---|---|---|
| Product: | [Applications] konqueror | Reporter: | Diego Iastrubni <cuco3001> |
| Component: | khtml | Assignee: | Konqueror Bugs <konqueror-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | a small test case for this bug. | ||
|
Description
Diego Iastrubni
2005-01-24 18:10:42 UTC
Created attachment 9260 [details]
a small test case for this bug.
Is it possible to replicate the problem with english text forced into RTL? The problem is that I can't easily see where it breaks, and how it is supposed to look. CVS commit by charles:
RTL text overlapping when using text-align: justify.
BUG: 97806
Easy one, I'm confident enough to commit without review on bugs.k.o.
M +3 -1 font.cpp 1.33
--- kdelibs/khtml/rendering/font.cpp #1.32:1.33
@@ -225,5 +225,7 @@ void Font::drawText( QPainter *p, int x,
Q_ASSERT(onSegment);
if (mode == WordWise) {
- segmentWidth += closeWordAndGetWidth(fm, str, pos, lastWordBegin, to);
+ const int width = closeWordAndGetWidth(fm, str, pos, lastWordBegin, to);
+ segmentWidth += width;
+ widthList[lastWordBegin] = (short)width;
}
That seems to fix many sites which were broken for over a year. Thank you! __________________________________ Do you Yahoo!? Meet the all-new My Yahoo! - Try it today! http://my.yahoo.com |