Hi,
since revision 14681, the opening of images does not work for me any
more. I open a track, then open a jpeg image, and enter the correct
offset for it. The message I get is "No Trackpoints found for image
...".
I found the bug in src/GeoImageDock.cpp. In revision 14681, "(unsigned
int)-1/2" was converted to "(int)-1/2" in the code, which changed the
meaning of this expression significantly (INT_MAX vs. 0).
A patch is attached.
cheers,
Daniel
Index: src/GeoImageDock.cpp
===================================================================
--- src/GeoImageDock.cpp (Revision 14886)
+++ src/GeoImageDock.cpp (Arbeitskopie)
@@ -345,7 +345,7 @@
MapFeature *feature = NULL;
TrackPoint *Pt, *bestPt = NULL;
- int a, secondsTo = (int)-1 / 2;
+ int a, secondsTo = INT_MAX;
int u;
for (u=0; u<theLayer->size(); u++) {
_______________________________________________
Merkaartor mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/merkaartor