Skip to content

Conversation

@Gillibald
Copy link
Contributor

@Gillibald Gillibald commented Jul 7, 2025

What does the pull request do?

This PR ensures that TextLineImpl.GetTextBounds properly handles zero width trailing characters.

What is the current behavior?

What is the updated/expected behavior with this PR?

How was the solution implemented (if it's not obvious)?

Checklist

Breaking changes

Obsoletions / Deprecations

Fixed issues

@Gillibald Gillibald added customer-priority Issue reported by a customer with a support agreement. backport-candidate-11.3.x Consider this PR for backporting to 11.3 branch labels Jul 7, 2025
@MrJul MrJul added the bug label Jul 7, 2025
@MrJul
Copy link
Member

MrJul commented Jul 7, 2025

What was the broken behavior before the PR?

@Gillibald
Copy link
Contributor Author

remainingLength -= coveredLength;
coveredLength was negative here and resulted in an infinite loop. There should be some guard to prevent this.

@maxkatz6 maxkatz6 enabled auto-merge July 7, 2025 23:30
@avaloniaui-bot
Copy link

You can test this PR using the following package version. 12.0.999-cibuild0057598-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@maxkatz6 maxkatz6 added this pull request to the merge queue Jul 8, 2025
Merged via the queue into AvaloniaUI:master with commit 44295dd Jul 8, 2025
10 checks passed
@Gillibald Gillibald deleted the fixes/getTextBoundsEol branch July 10, 2025 07:20
Gillibald added a commit to Gillibald/Avalonia that referenced this pull request Jul 14, 2025
…racters (AvaloniaUI#19208)

* Make sure we only apply the cluster offset if we are inside the current cluster

* Better naming

* Guard coveredLength against invalid values

---------

Co-authored-by: Max Katz <[email protected]>
@Gillibald Gillibald mentioned this pull request Jul 14, 2025
3 tasks
MrJul pushed a commit that referenced this pull request Jul 14, 2025
…racters (#19208) (#19251)

* Make sure we only apply the cluster offset if we are inside the current cluster

* Better naming

* Guard coveredLength against invalid values

---------

Co-authored-by: Max Katz <[email protected]>
@MrJul MrJul added backported-11.3.x and removed backport-candidate-11.3.x Consider this PR for backporting to 11.3 branch labels Jul 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backported-11.3.x bug customer-priority Issue reported by a customer with a support agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants