diff --git a/src/domain/UBGraphicsTextItemDelegate.cpp b/src/domain/UBGraphicsTextItemDelegate.cpp index 1c817860..06e77d36 100644 --- a/src/domain/UBGraphicsTextItemDelegate.cpp +++ b/src/domain/UBGraphicsTextItemDelegate.cpp @@ -354,7 +354,7 @@ void UBGraphicsTextItemDelegate::pickColor() { if (mDelegated && mDelegated->scene() && mDelegated->scene()->views().size() > 0) { - QColorDialog colorDialog(delegated()->defaultTextColor(), mDelegated->scene()->views().at(0)); + QColorDialog colorDialog(delegated()->defaultTextColor(), static_cast(UBApplication::boardController->controlView())); colorDialog.setWindowTitle(tr("Text Color")); if (UBSettings::settings()->isDarkBackground()) {