Index: Source/WebCore/rendering/RenderBlockLineLayout.cpp |
=================================================================== |
--- Source/WebCore/rendering/RenderBlockLineLayout.cpp (revision 93495) |
+++ Source/WebCore/rendering/RenderBlockLineLayout.cpp (working copy) |
@@ -1838,7 +1838,7 @@ |
if (lineMidpointState.numMidpoints % 2) { |
// Find the trailing space object's midpoint. |
int trailingSpaceMidpoint = lineMidpointState.numMidpoints - 1; |
- for ( ; trailingSpaceMidpoint >= 0 && lineMidpointState.midpoints[trailingSpaceMidpoint].m_obj != m_whitespace; --trailingSpaceMidpoint) { } |
+ for ( ; trailingSpaceMidpoint > 0 && lineMidpointState.midpoints[trailingSpaceMidpoint].m_obj != m_whitespace; --trailingSpaceMidpoint) { } |
ASSERT(trailingSpaceMidpoint >= 0); |
if (collapseFirstSpace == CollapseFirstSpace) |
lineMidpointState.midpoints[trailingSpaceMidpoint].m_pos--; |