Commit 0832aee8 authored by Florent D'Halluin's avatar Florent D'Halluin Committed by Guillaume Lazzara
Browse files

Update viewer.

* viewer/image_region.cc,
* viewer/image_region.hxx:
Properly align boxes and update scene.
parent 6d82d878
......@@ -48,7 +48,7 @@ ImageRegion::ImageRegion(region::RegionId id,
shape_.lineTo(QPoint(0, 0));
rect_ = shape_.boundingRect();
setPos(points[0]);
setPos(points[0] + QPointF(0.5, 0.5));
prepareGeometryChange();
}
......
......@@ -22,6 +22,7 @@ void
ImageRegion::setOutline(bool outline)
{
outline_ = outline;
scene()->invalidate();
update();
}
......@@ -30,6 +31,7 @@ void
ImageRegion::setPrecise(bool precise)
{
precise_ = precise;
scene()->invalidate();
update();
}
......@@ -55,6 +57,7 @@ ImageRegion::setDrawIfSameId(int id, bool draw)
{
if (id == id_)
draw_ = draw;
scene()->invalidate();
update();
}
......
Supports Markdown
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