Timeline: assert that render state is empty when we build node tree

Change-Id: If1ea56b5a885d17a38ab0cab29f7700b485a9b82
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2015-04-14 18:43:42 +02:00
parent ddbcaf59ec
commit c45c2c289d

View File

@@ -29,6 +29,7 @@
****************************************************************************/
#include "timelinerenderstate_p.h"
#include <utils/qtcassert.h>
namespace Timeline {
@@ -139,6 +140,8 @@ void TimelineRenderState::assembleNodeTree(const TimelineModel *model, int defau
int defaultRowOffset)
{
Q_D(TimelineRenderState);
QTC_ASSERT(isEmpty(), return);
for (int pass = 0; pass < d->passes.length(); ++pass) {
const TimelineRenderPass::State *passState = d->passes[pass];
if (!passState)