fix an error where color/font pickers were attached to the wrong view

preferencesAboutTextFull
Clément Fauconnier 7 years ago
parent d532097e51
commit f76de41c64
  1. 2
      src/domain/UBGraphicsTextItemDelegate.cpp

@ -354,7 +354,7 @@ void UBGraphicsTextItemDelegate::pickColor()
{ {
if (mDelegated && mDelegated->scene() && mDelegated->scene()->views().size() > 0) if (mDelegated && mDelegated->scene() && mDelegated->scene()->views().size() > 0)
{ {
QColorDialog colorDialog(delegated()->defaultTextColor(), mDelegated->scene()->views().at(0)); QColorDialog colorDialog(delegated()->defaultTextColor(), static_cast<QGraphicsView*>(UBApplication::boardController->controlView()));
colorDialog.setWindowTitle(tr("Text Color")); colorDialog.setWindowTitle(tr("Text Color"));
if (UBSettings::settings()->isDarkBackground()) if (UBSettings::settings()->isDarkBackground())
{ {

Loading…
Cancel
Save