mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 14:21:04 +08:00
Avoid unnecessary assignment in Text::findCharacterPos
This commit is contained in:
parent
267bbe35b8
commit
1f11e91bed
@ -312,9 +312,7 @@ Vector2f Text::findCharacterPos(std::size_t index) const
|
||||
}
|
||||
|
||||
// Transform the position to global coordinates
|
||||
position = getTransform().transformPoint(position);
|
||||
|
||||
return position;
|
||||
return getTransform().transformPoint(position);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user