Text items: don't apply font changes to entire text when only part of it was selected

preferencesAboutTextFull
Craig Watson 8 years ago
parent 282d55d0f9
commit f434cb663f
  1. 3
      src/domain/UBGraphicsTextItemDelegate.cpp

@ -339,7 +339,10 @@ void UBGraphicsTextItemDelegate::pickFont()
curCursor.mergeCharFormat(format); curCursor.mergeCharFormat(format);
delegated()->setTextCursor(curCursor); delegated()->setTextCursor(curCursor);
if (curCursor.selectedText().length() == 0)
delegated()->setFont(selectedFont); delegated()->setFont(selectedFont);
delegated()->setSelected(true); delegated()->setSelected(true);
delegated()->document()->adjustSize(); delegated()->document()->adjustSize();
delegated()->contentsChanged(); delegated()->contentsChanged();

Loading…
Cancel
Save