From c831580e1b4547d5fcbe74864e657c1c4ebffc12 Mon Sep 17 00:00:00 2001 From: Henrique Nakashima Date: Thu, 19 Apr 2018 21:59:33 +0000 Subject: Fix duplicated text in each line in XFA widgets. When calculating the characters to display, the run offset was not added to the offset inside the run, so characters from the first run were always used instead of from the run that the line should display. Bug: chromium:832909 Change-Id: I4d1d284894ce6ac9c7a49976aa6a6d0cf21f1382 Reviewed-on: https://pdfium-review.googlesource.com/30993 Commit-Queue: Henrique Nakashima Reviewed-by: dsinclair --- xfa/fgas/layout/cfx_txtbreak.h | 1 + 1 file changed, 1 insertion(+) (limited to 'xfa/fgas/layout/cfx_txtbreak.h') diff --git a/xfa/fgas/layout/cfx_txtbreak.h b/xfa/fgas/layout/cfx_txtbreak.h index b43fda0e2f..a0e034280b 100644 --- a/xfa/fgas/layout/cfx_txtbreak.h +++ b/xfa/fgas/layout/cfx_txtbreak.h @@ -42,6 +42,7 @@ struct FX_TXTRUN { CFDE_TextEditEngine* pEdtEngine; WideString wsStr; int32_t* pWidths; + int32_t iStart; int32_t iLength; RetainPtr pFont; float fFontSize; -- cgit v1.2.3