diff --git a/src/tools/UBGraphicsCurtainItemDelegate.cpp b/src/tools/UBGraphicsCurtainItemDelegate.cpp index 23796aba..5525e69e 100644 --- a/src/tools/UBGraphicsCurtainItemDelegate.cpp +++ b/src/tools/UBGraphicsCurtainItemDelegate.cpp @@ -94,8 +94,10 @@ QVariant UBGraphicsCurtainItemDelegate::itemChange(QGraphicsItem::GraphicsItemCh void UBGraphicsCurtainItemDelegate::positionHandles() { UBGraphicsItemDelegate::positionHandles(); - mZOrderUpButton->hide(); - mZOrderDownButton->hide(); + if(mZOrderUpButton) + mZOrderUpButton->hide(); + if(mZOrderDownButton) + mZOrderDownButton->hide(); } void UBGraphicsCurtainItemDelegate::remove(bool checked, bool canUndo)