Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Fix bug where multiple runs in a line were drawn incorrectly#1097

Merged
aballway merged 3 commits into
microsoft:CT-DWfrom
aballway:coretext
Oct 11, 2016
Merged

Fix bug where multiple runs in a line were drawn incorrectly#1097
aballway merged 3 commits into
microsoft:CT-DWfrom
aballway:coretext

Conversation

@aballway

@aballway aballway commented Oct 6, 2016

Copy link
Copy Markdown
Contributor

When multiple runs were present in a line we did not correctly adjust the x offset and were drawing them on top of eachother

@rajsesh

rajsesh commented Oct 6, 2016

Copy link
Copy Markdown
Contributor

:shipit:

_CTRunDraw(static_cast<CTRunRef>(curRun), ctx, range, false);
for (size_t i = 0; i < [line->_runs count]; ++i) {
_CTRun* curRun = [line->_runs objectAtIndex:i];
if (i > 0) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a comment here explaining why this is necessary?

@ms-jihua

ms-jihua commented Oct 6, 2016

Copy link
Copy Markdown
Contributor

:shipit:

@MSFTFox

MSFTFox commented Oct 6, 2016

Copy link
Copy Markdown
Member

:shipit:

@aballway aballway merged commit bc25b1b into microsoft:CT-DW Oct 11, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants