From 3567089278d9ed59c449077931dbf42791cca69e Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 24 Mar 2018 22:07:41 +0100 Subject: [PATCH] Provide default size for main profiler window. This prevents a crash when loading saved trace with plot. --- server/TracyView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 36e57646..37d9ed0b 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -289,7 +289,7 @@ void View::DrawImpl() } std::lock_guard lock( m_worker.GetDataLock() ); - ImGui::Begin( m_worker.GetCaptureName().c_str(), nullptr, ImGuiWindowFlags_NoScrollbar ); + ImGui::Begin( m_worker.GetCaptureName().c_str(), nullptr, ImVec2( 1550, 800 ), -1, ImGuiWindowFlags_NoScrollbar ); if( !m_worker.IsDataStatic() ) { if( ImGui::Button( m_pause ? "Resume" : "Pause", ImVec2( 70, 0 ) ) ) m_pause = !m_pause;