Skip to content
This repository was archived by the owner on Sep 7, 2021. It is now read-only.

Commit 9624c7b

Browse files
committed
Merge branch 'bugfix-10908' into release-6.0.2
2 parents 443fe0e + 92aefff commit 9624c7b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

engine/src/fields.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,8 +1016,9 @@ Exec_stat MCField::gettextatts(uint4 parid, Properties which, MCExecPoint &ep, M
10161016
// making sure the ranges are adjusted to the start of the range.
10171017
sptr -> getflaggedranges(parid, ep, si, ei, t_index_offset);
10181018

1019-
// Increment the offset by the size of the paragraph.
1020-
t_index_offset += sptr -> gettextsizecr();
1019+
// MW-2013-05-22: [[ Bug 10908 ]] Increment the offset by the size of the
1020+
// paragraph in codepoints not bytes.
1021+
t_index_offset += sptr -> gettextlength() + 1;
10211022

10221023
// Reduce ei until we get to zero, advancing through the paras.
10231024
si = 0;

0 commit comments

Comments
 (0)