Provide default size for main profiler window.

This prevents a crash when loading saved trace with plot.
This commit is contained in:
Bartosz Taudul 2018-03-24 22:07:41 +01:00
parent 1219b72577
commit 3567089278

View File

@ -289,7 +289,7 @@ void View::DrawImpl()
}
std::lock_guard<NonRecursiveBenaphore> 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;