浏览代码

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

Nicolas Rannou 15 年之前
父节点
当前提交
901768b8a4
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);