From f76de41c64d7aba4241131bbf3b31bbfdeaedf2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Fauconnier?= Date: Tue, 10 Oct 2017 16:59:27 +0200 Subject: [PATCH] fix an error where color/font pickers were attached to the wrong view --- src/domain/UBGraphicsTextItemDelegate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) {