BlockView tracing fix
This commit is contained in:
@@ -1279,11 +1279,11 @@ void BlockView::trace(QPointF scene_pos_from, QPointF scene_pos_to, BlockBusItem
|
|||||||
sx *= signx;
|
sx *= signx;
|
||||||
sy *= signy;
|
sy *= signy;
|
||||||
//qDebug() << "fill" << p0 << "->" << p1 << "in" << steps << sx << sy;
|
//qDebug() << "fill" << p0 << "->" << p1 << "in" << steps << sx << sy;
|
||||||
for (int j = 0; j < steps; ++j) {
|
for (int j = 0; j <= steps; ++j) {
|
||||||
QPoint tp = quantize(cp, grid_step).toPoint() / grid_step + dp;
|
QPoint tp = quantize(cp, grid_step).toPoint() / grid_step + dp;
|
||||||
if (tp != qpt)
|
if (tp != qpt)
|
||||||
wavetrace.fill(tp, cs);
|
wavetrace.fill(tp, (j > 0 && j < steps) ? cs : BlockViewWavetrace::Blocked);
|
||||||
//qDebug() << " set" << cp;
|
//qDebug() << " set" << cp << ((j > 0 && j < steps) ? cs : BlockViewWavetrace::Blocked);
|
||||||
cp += QPointF(sx, sy);
|
cp += QPointF(sx, sy);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user