[Kst] branches/work/kst/portto4/kst/src/libkstapp
Barth Netterfield
netterfield at astro.utoronto.ca
Mon Jul 9 22:41:39 UTC 2012
SVN commit 1304943 by netterfield:
Make lines start exactly where you ask them to.
M +1 -1 lineitem.cpp
--- branches/work/kst/portto4/kst/src/libkstapp/lineitem.cpp #1304942:1304943
@@ -129,7 +129,7 @@
if (event == View::MousePress) {
const QPolygonF poly = mapFromScene(view()->creationPolygon(View::MousePress));
setPos(poly.first().x(), poly.first().y());
- setViewRect(QRectF(0.0, 0.0, 0.0, sizeOfGrip().height()));
+ setViewRect(QRectF(0.0, -sizeOfGrip().height()*0.5, 0.0, sizeOfGrip().height()));
view()->scene()->addItem(this);
return;
}
More information about the Kst
mailing list