14 lines
885 B
Plaintext
14 lines
885 B
Plaintext
$OpenBSD: patch-src_Tools_RegionMapWidget_cpp,v 1.2 2010/06/13 10:57:35 landry Exp $
|
|
Confuses g++3
|
|
--- src/Tools/RegionMapWidget.cpp.orig Sun Jun 6 16:41:25 2010
|
|
+++ src/Tools/RegionMapWidget.cpp Sat Jun 12 16:49:28 2010
|
|
@@ -114,7 +114,7 @@ void RegionMapWidget::mouseReleaseEvent(QMouseEvent* e
|
|
CoordBox v = CoordBox(Coord(R.y(), R.x()), Coord(R.y()+R.height(), R.x()+R.width()));
|
|
QPointF P = ev->pos();
|
|
|
|
- Coord Pt(int(((height()-P.y()) / height() * v.latDiff()) + v.bottomLeft().lat()), int((P.x() / width() * v.lonDiff()) + v.bottomLeft().lon()));
|
|
+ Coord Pt = Coord(int(((height()-P.y()) / height() * v.latDiff()) + v.bottomLeft().lat()), int((P.x() / width() * v.lonDiff()) + v.bottomLeft().lon()));
|
|
int x = int(((qint64)Pt.lon()) / REGION_WIDTH);
|
|
x = (x < 0) ? x-1 :x;
|
|
int y = int(((qint64)Pt.lat()) / REGION_WIDTH);
|