diff --git a/src/board/UBBoardView.cpp b/src/board/UBBoardView.cpp index 712d89b9..ea51f01b 100644 --- a/src/board/UBBoardView.cpp +++ b/src/board/UBBoardView.cpp @@ -638,7 +638,6 @@ UBBoardView::drawItems (QPainter *painter, int numItems, QGraphicsItem* items[], const QStyleOptionGraphicsItem options[]) { - if (!mFilterZIndex) { QGraphicsView::drawItems (painter, numItems, items, options); diff --git a/src/board/UBBoardView.h b/src/board/UBBoardView.h index 6549e677..84713298 100644 --- a/src/board/UBBoardView.h +++ b/src/board/UBBoardView.h @@ -9,7 +9,6 @@ #define UBBOARDVIEW_H_ #include - #include "core/UB.h" class UBBoardController; diff --git a/src/domain/UBGraphicsTextItem.cpp b/src/domain/UBGraphicsTextItem.cpp index 18991ad3..182bea59 100644 --- a/src/domain/UBGraphicsTextItem.cpp +++ b/src/domain/UBGraphicsTextItem.cpp @@ -256,6 +256,7 @@ void UBGraphicsTextItem::setTextHeight(qreal height) qreal minHeight = fm.height() + document()->documentMargin() * 2; mTextHeight = qMax(minHeight, height); update(); + setFocus(); }