Explorar o código

BUG: ctkTransferFunctionItem, the event was not the one it was supposed to be

Nicolas Rannou %!s(int64=15) %!d(string=hai) anos
pai
achega
901768b8a4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Libs/Widgets/ctkTransferFunctionItem.cpp

+ 1 - 1
Libs/Widgets/ctkTransferFunctionItem.cpp

@@ -322,7 +322,7 @@ QPointF ctkTransferFunctionItem::screen2TransferFunctionCoordinates( qreal x, qr
 QVariant ctkTransferFunctionItem::itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant& value)
 {
   QVariant res = this->QGraphicsObject::itemChange(change, value);
-  if (change == QGraphicsItem::ItemSceneChange && this->scene())
+  if (change == QGraphicsItem::ItemSceneHasChanged && this->scene())
     {
     connect(this->transferFunction(),SIGNAL(changed()),
             this->scene(), SLOT(update()),Qt::UniqueConnection);