Fix:core:Fix assertion
authornorad <norad@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Tue, 21 Dec 2010 15:35:37 +0000 (15:35 +0000)
committernorad <norad@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Tue, 21 Dec 2010 15:35:37 +0000 (15:35 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@3805 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/graphics.c

index ba6eab5..82e489d 100644 (file)
@@ -1238,7 +1238,7 @@ graphics_draw_polyline_as_polygon(struct graphics *gra, struct graphics_gc *gc,
                        l=1;
                if (wi*lscale > 10000)
                        lscale=10000/wi;
-               dbg_assert(wi*lscale < 10000);
+               dbg_assert(wi*lscale <= 10000);
                calc_offsets(wi*lscale, l, dx, dy, &o);
                pos.x = pnt[i].x + o.ny;
                pos.y = pnt[i].y + o.px;