Commit 998efbd0 authored by Aleksei Kanash's avatar Aleksei Kanash

SANKORE-604

"+" and "-" buttons does nothing if text item is empty.
parent f482d9f0
......@@ -327,6 +327,11 @@ void UBGraphicsTextItemDelegate::ChangeTextSize(qreal factor, textChangeMode cha
if (0 == factor)
return;
UBGraphicsTextItem *item = dynamic_cast<UBGraphicsTextItem*>(delegated());
if (item && (QString() == item->toPlainText()))
return;
QTextCursor cursor = delegated()->textCursor();
QTextCharFormat textFormat;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment