From fe66eaeed64402a7b22a43a85cd92c938a534b71 Mon Sep 17 00:00:00 2001 From: Aaron Kennedy Date: Fri, 17 Jul 2009 16:56:15 +1000 Subject: Missing SetDefault instruction --- src/declarative/qml/qmlcompiler.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/declarative/qml/qmlcompiler.cpp b/src/declarative/qml/qmlcompiler.cpp index 220c464..138be29 100644 --- a/src/declarative/qml/qmlcompiler.cpp +++ b/src/declarative/qml/qmlcompiler.cpp @@ -903,6 +903,11 @@ void QmlCompiler::genComponent(QmlParser::Object *obj) genObject(root); + QmlInstruction def; + init.line = 0; + def.type = QmlInstruction::SetDefault; + output->bytecode << def; + output->bytecode[count - 1].createComponent.count = output->bytecode.count() - count; -- cgit v0.12