wok view dia/stuff/dia-overflow-fix.patch @ rev 13566

Add: python-html2text
author Christophe Lincoln <pankso@slitaz.org>
date Sat Nov 03 14:23:01 2012 +0100 (2012-11-03)
parents
children
line source
1 diff -wbBur dia-0.97.1/plug-ins/xfig/xfig-export.c dia-0.97.1.my/plug-ins/xfig/xfig-export.c
2 --- dia-0.97.1/plug-ins/xfig/xfig-export.c 2009-11-07 17:28:34.000000000 +0300
3 +++ dia-0.97.1.my/plug-ins/xfig/xfig-export.c 2010-11-15 17:44:05.640896280 +0300
4 @@ -417,6 +417,9 @@
5 if (text[i] > 127) {
6 newlen += 3;
7 }
8 + if (text[i] == '\\') {
9 + newlen += 1;
10 + }
11 }
12 returntext = g_malloc(sizeof(char)*(newlen+1));
13 j = 0;
14 @@ -1085,10 +1088,10 @@
15 figtext = figText(renderer, (unsigned char *) text);
16 /* xfig texts are specials */
17 fprintf(renderer->file, "4 %d %d %d 0 %d %s 0.0 6 0.0 0.0 %d %d %s\\001\n",
18 - figAlignment(renderer, alignment),
19 - figColor(renderer, color),
20 - figDepth(renderer),
21 - figFont(renderer),
22 + (int)figAlignment(renderer, alignment),
23 + (int)figColor(renderer, color),
24 + (int)figDepth(renderer),
25 + (int)figFont(renderer),
26 xfig_dtostr(d_buf, figFontSize(renderer)),
27 (int)figCoord(renderer, pos->x),
28 (int)figCoord(renderer, pos->y),