Skip to content

Commit

Permalink
Rename variable to match meaning better
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed Jun 6, 2023
1 parent bac337e commit 2e47670
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions osu.Framework/Graphics/Sprites/SpriteText.cs
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,9 @@ public string EllipsisString
}

/// <summary>
/// When <see cref="Truncate"/> is enabled, this indicates an ellipsis was added, meaning <see cref="Text"/> has been visually truncated.
/// When <see cref="Truncate"/> is enabled, this indicates whether <see cref="Text"/> has been visually truncated.
/// </summary>
protected bool EllipsisAdded { get; private set; }
protected bool IsTruncated { get; private set; }

private bool requiresAutoSizedWidth => explicitWidth == null && (RelativeSizeAxes & Axes.X) == 0;

Expand Down Expand Up @@ -483,7 +483,7 @@ private void computeCharacters()
textBounds = textBuilder.Bounds;

if (textBuilder is TruncatingTextBuilder truncatingTextBuilder)
EllipsisAdded = truncatingTextBuilder.EllipsisAdded;
IsTruncated = truncatingTextBuilder.EllipsisAdded;
}
finally
{
Expand Down

0 comments on commit 2e47670

Please sign in to comment.