mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +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
|
// Transform the position to global coordinates
|
||||||
position = getTransform().transformPoint(position);
|
return getTransform().transformPoint(position);
|
||||||
|
|
||||||
return position;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user