[Xastir-dev] [Xastir] Is there anyone left running Xorg server 1.7.5?

Tom Hayward tom at tomh.us
Wed Sep 19 18:07:58 EDT 2012


On Wed, Sep 19, 2012 at 3:51 PM, Curt, WE7U <curt.we7u at gmail.com> wrote:
>> next release. Please give me a day or two to send it (do you accept
>> patches via snail mail?).
>
> Any way you can get them to me (or Tom).  Good luck figuring out the correct
> address for me though.

Hmm, maybe I'll try via APRS message. It's a small patch, and I could
probably make it to NM in few enough hops to fit in the path of an
AX.25 frame...

Ok, plan B, I have contacted someone local to the remote network and
had them power on the machine. Here's the patch.

This patch fixes an issue in the OSM tile download loop. If a tile is
404, 403, or any other error that doesn't return a valid image,
imagemagick (or gm) puts the error info in &exception. Subsequent
iterations read &exception, note the error, and fail to composite any
further tiles. This patch adds GetExceptionInfo() to the end of the
loop, so subsequent iterations do not start off with error info in the
exception struct.

Tom KD7LXL


Index: xastir/src/map_OSM.c
===================================================================
--- xastir.orig/src/map_OSM.c   2012-09-10 18:29:00.014086980 -0600
+++ xastir/src/map_OSM.c        2012-09-10 18:29:34.846085897 -0600
@@ -1240,6 +1240,8 @@
                         fprintf(stderr, "Removing %s\n", tmpString);
                         unlink(tmpString);
                     }
+                    // clear exception so next iteration doesn't fail
+                    GetExceptionInfo(&exception);

                     // replace the missing tile with a place holder
                     //(void)strcpy(tile_info->filename, "xc:red");



More information about the Xastir-dev mailing list