From 7b3e8d20ee47a354a1b1a007fd1ff3f79739dd47 Mon Sep 17 00:00:00 2001 From: Ilia Ryabokon Date: Thu, 23 Aug 2012 18:08:01 +0300 Subject: [PATCH] Sankore group destructor crash hotfix --- src/domain/UBGraphicsItemDelegate.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/domain/UBGraphicsItemDelegate.cpp b/src/domain/UBGraphicsItemDelegate.cpp index b6ec5868..e0cfcc33 100644 --- a/src/domain/UBGraphicsItemDelegate.cpp +++ b/src/domain/UBGraphicsItemDelegate.cpp @@ -195,10 +195,10 @@ QVariant UBGraphicsItemDelegate::itemChange(QGraphicsItem::GraphicsItemChange ch if ((change == QGraphicsItem::ItemSelectedHasChanged || change == QGraphicsItem::ItemPositionHasChanged || change == QGraphicsItem::ItemTransformHasChanged) - && mDelegated->scene()) - { + && mDelegated->scene() + && UBApplication::boardController) + { mAntiScaleRatio = 1 / (UBApplication::boardController->systemScaleFactor() * UBApplication::boardController->currentZoom()); - positionHandles(); }