[Kst] extragear/graphics/kst/kst
George Staikos
staikos at kde.org
Wed Jun 15 14:34:00 CEST 2005
SVN commit 425711 by staikos:
M +3 -2 kstviewarrow.cpp
--- trunk/extragear/graphics/kst/kst/kstviewarrow.cpp #425710:425711
@@ -49,8 +49,8 @@
double cosa = cos(theta + M_PI / 2);
int l = 2 * w;
pts[0] = to;
- pts[1] = QPoint(to.x() + l, to.y() + sqrt(3) * l);
- pts[2] = QPoint(to.x() - l, to.y() + sqrt(3) * l);
+ pts[1] = QPoint(to.x() + l, to.y() + int(sqrt(3) * l));
+ pts[2] = QPoint(to.x() - l, to.y() + int(sqrt(3) * l));
QWMatrix m(cosa, sina, -sina, cosa, 0, 0);
pts.translate(-to.x(), -to.y());
pts = m.map(pts);
@@ -68,5 +68,6 @@
KstViewObject::saveTag(ts, indent);
}
+
#include "kstviewarrow.moc"
// vim: ts=2 sw=2 et
More information about the Kst
mailing list