richedit: Prevent division by zero when 0-width border is used.
authorEric Pouech <eric.pouech@orange.fr>
Sun, 16 Mar 2008 20:45:31 +0000 (21:45 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 17 Mar 2008 13:18:36 +0000 (14:18 +0100)
dlls/riched20/paint.c

index 868764446695975fd607f5fd96c8ee249fe16ecc..91d5ec01f500dd68bf3c302568945a578ce419e3 100644 (file)
@@ -290,7 +290,7 @@ static void ME_DrawRun(ME_Context *c, int x, int y, ME_DisplayItem *rundi, ME_Pa
 }
 
 static struct {unsigned width_num : 4, width_den : 4, pen_style : 4, dble : 1;} border_details[] = {
-  /* none */            {0, 0, PS_SOLID, FALSE},
+  /* none */            {0, 1, PS_SOLID, FALSE},
   /* 3/4 */             {3, 4, PS_SOLID, FALSE},
   /* 1 1/2 */           {3, 2, PS_SOLID, FALSE},
   /* 2 1/4 */           {9, 4, PS_SOLID, FALSE},