From cecbf715396b5297a99d72e36526de5c24b927b4 Mon Sep 17 00:00:00 2001 From: Norbert Thiebaud Date: Mon, 5 Mar 2012 04:08:28 -0600 Subject: iterator are not ordered --- vcl/source/gdi/sallayout.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcl/source/gdi/sallayout.cxx b/vcl/source/gdi/sallayout.cxx index 781cb036b2ea..f7c2f1512535 100644 --- a/vcl/source/gdi/sallayout.cxx +++ b/vcl/source/gdi/sallayout.cxx @@ -841,7 +841,7 @@ bool GenericSalLayout::GetCharWidths( sal_Int32* pCharWidths ) const // calculate right x-position for this glyph cluster // break if no more glyphs in layout // break at next glyph cluster start - while( (pG+1 < end) && !pG[1].IsClusterStart() ) + while( (pG+1 != end) && !pG[1].IsClusterStart() ) { // advance to next glyph in cluster ++pG; -- cgit