From 917da8cff3c3b2fedb785807359a62456779fadb Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 4 Jun 2020 02:41:45 +0200 Subject: [PATCH] Properly terminate combo table. --- server/TracyView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 1f755bf8..57581311 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -11519,7 +11519,7 @@ void View::DrawStatistics() ImGui::SameLine(); ImGui::TextUnformatted( "Location:" ); ImGui::SameLine(); - const char* locationTable = "Entry\0Sample\0Smart"; + const char* locationTable = "Entry\0Sample\0Smart\0"; ImGui::SetNextItemWidth( ImGui::CalcTextSize( "Sample" ).x + ImGui::GetTextLineHeight() * 2 ); ImGui::Combo( "##location", &m_statSampleLocation, locationTable ); ImGui::Separator();