fixed issue with align button that wasn't deleted

preferencesAboutTextFull
-f 11 years ago
parent 59133e42f5
commit 43ea8fc25b
  1. 6
      src/domain/UBGraphicsTextItemDelegate.cpp

@ -215,9 +215,9 @@ void UBGraphicsTextItemDelegate::freeButtons()
delete mIncreaseSizeButton; delete mIncreaseSizeButton;
mIncreaseSizeButton = 0; mIncreaseSizeButton = 0;
mButtons.removeOne(mIncreaseSizeButton); mButtons.removeOne(mAlignButton);
delete mIncreaseSizeButton; delete mAlignButton;
mIncreaseSizeButton = 0; mAlignButton = 0;
UBGraphicsItemDelegate::freeButtons(); UBGraphicsItemDelegate::freeButtons();
} }

Loading…
Cancel
Save