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

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

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

Loading…
Cancel
Save