Fix crash when media item is dragged on a page

preferencesAboutTextFull
Craig Watson 8 years ago
parent a8076a2be6
commit 88ef7fdd3b
  1. 2
      src/domain/UBItem.cpp

@ -119,6 +119,8 @@ UBGraphicsItemDelegate *UBGraphicsItem::Delegate(QGraphicsItem *pItem)
result = (static_cast<UBGraphicsSvgItem*>(pItem))->Delegate(); result = (static_cast<UBGraphicsSvgItem*>(pItem))->Delegate();
break; break;
case UBGraphicsMediaItem::Type: case UBGraphicsMediaItem::Type:
case UBGraphicsVideoItem::Type:
case UBGraphicsAudioItem::Type:
result = (static_cast<UBGraphicsMediaItem*>(pItem))->Delegate(); result = (static_cast<UBGraphicsMediaItem*>(pItem))->Delegate();
break; break;
case UBGraphicsStrokesGroup::Type : case UBGraphicsStrokesGroup::Type :

Loading…
Cancel
Save