Do not call Glue() in PrintTextExt().

This commit is contained in:
Bartosz Taudul
2026-02-01 02:35:26 +01:00
parent b60ab86fa5
commit bc122d5c3d

View File

@@ -273,6 +273,7 @@ public:
font = g_fonts.italic;
}
ImGui::PushFont( font, FontNormal * FontSizes[header] );
Glue();
PrintTextExt( text, text + size );
break;
}
@@ -354,7 +355,6 @@ private:
void PrintTextExt( const char* text, const char* end = nullptr, bool popFont = true )
{
if( !link.empty() ) ImGui::PushStyleColor( ImGuiCol_Text, ImVec4( 0.55f, 0.55f, 1.f, 1.f ) );
Glue();
const auto hovered = PrintText( text, end );
if( popFont ) ImGui::PopFont();
if( !link.empty() )