From 88ef7fdd3b4866869a3675d08f3053aa885da277 Mon Sep 17 00:00:00 2001 From: Craig Watson Date: Sun, 4 Sep 2016 23:31:49 -0400 Subject: [PATCH] Fix crash when media item is dragged on a page --- src/domain/UBItem.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/domain/UBItem.cpp b/src/domain/UBItem.cpp index 7d756258..f8f5b8a7 100644 --- a/src/domain/UBItem.cpp +++ b/src/domain/UBItem.cpp @@ -119,6 +119,8 @@ UBGraphicsItemDelegate *UBGraphicsItem::Delegate(QGraphicsItem *pItem) result = (static_cast(pItem))->Delegate(); break; case UBGraphicsMediaItem::Type: + case UBGraphicsVideoItem::Type: + case UBGraphicsAudioItem::Type: result = (static_cast(pItem))->Delegate(); break; case UBGraphicsStrokesGroup::Type :