From f0a7c0206361cb8fb0e387839a82762a799a9f01 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Thu, 1 Sep 2011 19:17:41 +0100 Subject: [PATCH] Ensure that calls for traces with a single frame are shown. Otherwise we get a solitary "Frame 0" node without children. --- gui/loaderthread.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gui/loaderthread.cpp b/gui/loaderthread.cpp index f311fe0..03f0ccd 100644 --- a/gui/loaderthread.cpp +++ b/gui/loaderthread.cpp @@ -95,6 +95,10 @@ void LoaderThread::run() // it's just a bunch of Delete calls for every object // after the last SwapBuffers if (currentFrame) { + if (!frames.count()) { + calls.squeeze(); + currentFrame->setCalls(calls, binaryDataSize); + } frames.append(currentFrame); currentFrame = 0; } -- 2.45.2