Skip to content

Commit

Permalink
Fix crash when opening a kdenlive document with titles
Browse files Browse the repository at this point in the history
	modified:   src/modules/qimage/kdenlivetitle_wrapper.cpp
  • Loading branch information
j-b-m committed Dec 21, 2009
1 parent 9f9e51f commit 129ef40
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/qimage/kdenlivetitle_wrapper.cpp
Expand Up @@ -380,6 +380,7 @@ void drawKdenliveTitle( producer_ktitle self, mlt_frame frame, int width, int he
}
}
scene = new QGraphicsScene();
scene->setItemIndexMethod( QGraphicsScene::NoIndex );
scene->setSceneRect(0, 0, mlt_properties_get_int( properties, "width" ), mlt_properties_get_int( properties, "height" ));
loadFromXml( producer, scene, mlt_properties_get( producer_props, "xmldata" ), mlt_properties_get( producer_props, "templatetext" ) );
mlt_properties_set_data( producer_props, "qscene", scene, 0, ( mlt_destructor )qscene_delete, NULL );
Expand Down

0 comments on commit 129ef40

Please sign in to comment.