From 9b103e24a035cab961da587af46f71d04208503a Mon Sep 17 00:00:00 2001 From: Eric Mader Date: Wed, 5 Dec 2001 00:36:34 +0000 Subject: [PATCH] ICU-1428 Paragraph::draw - need to call ubidi_setLine with lastChar + 1. X-SVN-Rev: 7317 --- icu4c/source/samples/layout/paragraph.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/icu4c/source/samples/layout/paragraph.cpp b/icu4c/source/samples/layout/paragraph.cpp index e397829a3c..ab53b1c69b 100644 --- a/icu4c/source/samples/layout/paragraph.cpp +++ b/icu4c/source/samples/layout/paragraph.cpp @@ -425,7 +425,7 @@ void Paragraph::draw(void *surface, int32_t firstLine, int32_t lastLine) x = MARGIN; - ubidi_setLine(fBidi, firstChar, lastChar, lBidi, &bidiStatus); + ubidi_setLine(fBidi, firstChar, lastChar + 1, lBidi, &bidiStatus); dirCount = ubidi_countRuns(lBidi, &bidiStatus);