SANKORE-604

"+" and "-" buttons does nothing if text item is empty.
preferencesAboutTextFull
Aleksei Kanash 13 years ago
parent f482d9f057
commit 998efbd070
  1. 5
      src/domain/UBGraphicsTextItemDelegate.cpp

@ -327,6 +327,11 @@ void UBGraphicsTextItemDelegate::ChangeTextSize(qreal factor, textChangeMode cha
if (0 == factor) if (0 == factor)
return; return;
UBGraphicsTextItem *item = dynamic_cast<UBGraphicsTextItem*>(delegated());
if (item && (QString() == item->toPlainText()))
return;
QTextCursor cursor = delegated()->textCursor(); QTextCursor cursor = delegated()->textCursor();
QTextCharFormat textFormat; QTextCharFormat textFormat;

Loading…
Cancel
Save