Avoid unnecessary assignment in Text::findCharacterPos

This commit is contained in:
Vittorio Romeo 2024-09-22 12:41:32 +02:00 committed by Lukas Dürrenberger
parent 267bbe35b8
commit 1f11e91bed

View File

@ -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);
}