Fix:Core:Changed g_assert to dbg_assert
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Sat, 18 Oct 2008 17:32:45 +0000 (17:32 +0000)
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Sat, 18 Oct 2008 17:32:45 +0000 (17:32 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@1487 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/map.h

index 3a76e7f..bcbb102 100644 (file)
@@ -157,16 +157,16 @@ map_selection_contains_rect(struct map_selection *sel, struct coord_rect *r)
 {
        struct map_selection *curr;
 
-       g_assert(r->lu.x <= r->rl.x);
-       g_assert(r->lu.y >= r->rl.y);
+       dbg_assert(r->lu.x <= r->rl.x);
+       dbg_assert(r->lu.y >= r->rl.y);
 
        if (! sel)
                return 1;
        curr=sel;
        while (curr) {
                struct coord_rect *sr=&curr->u.c_rect;
-               g_assert(sr->lu.x <= sr->rl.x);
-               g_assert(sr->lu.y >= sr->rl.y);
+               dbg_assert(sr->lu.x <= sr->rl.x);
+               dbg_assert(sr->lu.y >= sr->rl.y);
                if (r->lu.x <= sr->rl.x && r->rl.x >= sr->lu.x &&
                    r->lu.y >= sr->rl.y && r->rl.y <= sr->lu.y)
                        return 1;