Commit 538ab454 authored by Tobias Neeb's avatar Tobias Neeb
Browse files

fix scaling over the top after update

parent 9244eb2f
......@@ -217,12 +217,12 @@ void WTransferFunction2DGUIWidget::insertBoxWidget( const QPointF &pos, const do
void WTransferFunction2DGUIWidget::insertTriangleWidgetNormalized( QPointF points[], const QPointF &pos = QPointF( 0.0, 0.0 ),
const QColor * const color = new QColor( 0.00, 0.0, 255.0, 20.0 ) )
{
points[0].setX( points[0].x() * 10 );
points[0].setY( points[0].y() * 10 );
points[1].setX( points[1].x() * 10 );
points[1].setY( points[1].y() * 10 );
points[2].setX( points[2].x() * 10 );
points[2].setY( points[2].y() * 10 );
points[0].setX( points[0].x() );
points[0].setY( points[0].y() );
points[1].setX( points[1].x() );
points[1].setY( points[1].y() );
points[2].setX( points[2].x() );
points[2].setY( points[2].y() );
insertTriangleWidget( points, QPointF( pos.x() * 300., pos.y() * 300. ), color );
}
......@@ -241,8 +241,8 @@ void WTransferFunction2DGUIWidget::addTriangleWidget()
{
QPointF points[3];
points[0] = QPointF( 0.0, 0.0 );
points[1] = QPointF( 4.0, 4.0 );
points[2] = QPointF( 4.0, 0.0 );
points[1] = QPointF( 40.0, 40.0 );
points[2] = QPointF( 40.0, 0.0 );
insertTriangleWidgetNormalized( points );
}
......
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