Commit d20075d4 authored by hyatt's avatar hyatt

Fix the problem where the last lines of paragrpahs were getting

	justified incorrectly.

        * khtml/rendering/bidi.cpp:
        (RenderFlow::findNextLineBreak):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2706 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent d6e471b6
2002-11-15 David Hyatt <hyatt@apple.com>
Fix the problem where the last lines of paragrpahs were getting
justified incorrectly.
* khtml/rendering/bidi.cpp:
(RenderFlow::findNextLineBreak):
2002-11-15 David Hyatt <hyatt@apple.com>
Fix bustage with <nobr> tags. Inline nowrap elements were
......
2002-11-15 David Hyatt <hyatt@apple.com>
Fix the problem where the last lines of paragrpahs were getting
justified incorrectly.
* khtml/rendering/bidi.cpp:
(RenderFlow::findNextLineBreak):
2002-11-15 David Hyatt <hyatt@apple.com>
Fix bustage with <nobr> tags. Inline nowrap elements were
......
2002-11-15 David Hyatt <hyatt@apple.com>
Fix the problem where the last lines of paragrpahs were getting
justified incorrectly.
* khtml/rendering/bidi.cpp:
(RenderFlow::findNextLineBreak):
2002-11-15 David Hyatt <hyatt@apple.com>
Fix bustage with <nobr> tags. Inline nowrap elements were
......
......@@ -1437,8 +1437,12 @@ BidiIterator RenderFlow::findNextLineBreak(BidiIterator &start, QPtrList<BidiIte
//else if (lBreak.pos > 0)
// lBreak.pos--;
else if (lBreak.obj == 0 && trailingSpaceObject->isText()) {
lBreak.obj = trailingSpaceObject;
lBreak.pos = static_cast<RenderText *>(trailingSpaceObject)->length() - 1;
// Add a new end midpoint that stops right at the very end.
BidiIterator* endMid = new (trailingSpaceObject->renderArena()) BidiIterator();
endMid->obj = trailingSpaceObject;
RenderText* text = static_cast<RenderText *>(trailingSpaceObject);
endMid->pos = text->length() >=2 ? text->length() - 2 : 0;
midpoints.append(endMid);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment