Ensure placefile text IDs are unique, ensuring correct text placement

This commit is contained in:
Dan Paulat 2023-08-03 23:39:10 -05:00
parent 6e42001281
commit eaf5089526

View file

@ -166,7 +166,8 @@ void PlacefileLayer::Impl::RenderText(
float x,
float y)
{
const std::string windowName {fmt::format("PlacefileText-{}", ++textId_)};
const std::string windowName {
fmt::format("PlacefileText-{}-{}", placefileName_, ++textId_)};
// Convert screen to ImGui coordinates
y = params.height - y;