Commit 9f1a9bfa authored by Mario Hlawitschka's avatar Mario Hlawitschka
Browse files

[FIX] fixed issue when interpolating the color of newly inserted color points...

[FIX] fixed issue when interpolating the color of newly inserted color points in the transfer function
parent 5ca5067b
...@@ -374,6 +374,7 @@ void WTransferFunctionWidget::insertColorNormalized( const QPointF& pos, QColor ...@@ -374,6 +374,7 @@ void WTransferFunctionWidget::insertColorNormalized( const QPointF& pos, QColor
void WTransferFunctionWidget::insertColor( const QPointF& pos, QColor const *const color ) void WTransferFunctionWidget::insertColor( const QPointF& pos, QColor const *const color )
{ {
WTransferFunctionColorPoint *point( new WTransferFunctionColorPoint( this ) ); WTransferFunctionColorPoint *point( new WTransferFunctionColorPoint( this ) );
point->setPos( QPointF( pos.x(), 0 ) );
scene->addItem( point ); scene->addItem( point );
WTransferFunctionColorPoint* left( this->findCPointOnLeft( pos ) ); WTransferFunctionColorPoint* left( this->findCPointOnLeft( pos ) );
...@@ -433,7 +434,6 @@ void WTransferFunctionWidget::insertColor( const QPointF& pos, QColor const *con ...@@ -433,7 +434,6 @@ void WTransferFunctionWidget::insertColor( const QPointF& pos, QColor const *con
} }
} }
point->setPos( QPointF( pos.x(), 0 ) );
point->update(); point->update();
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment