Fix:Tools:Added missing #ifdef
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Fri, 22 Feb 2008 13:54:52 +0000 (13:54 +0000)
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Fri, 22 Feb 2008 13:54:52 +0000 (13:54 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@906 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/src/osm2navit.c

index 42c5aa0..ffca1e2 100644 (file)
@@ -1939,8 +1939,10 @@ process_slice(FILE *ways_in, FILE *nodes_in, int size, int maxnamelen, FILE *out
        th=tile_head_root;
        while (th) {
                if (th->process) {
+#ifdef GENERATE_INDEX
                        if (! strlen(th->name)) 
                                zipfiles+=write_aux_tiles(out, dir_out, compression_level, maxnamelen);
+#endif
                        if (th->total_size != th->total_size_used) {
                                fprintf(stderr,"Size error '%s': %d vs %d\n", th->name, th->total_size, th->total_size_used);
                                exit(1);