openbsd-ports/graphics/dia/patches/patch-objects_custom_shape_info_c
obecian fc06355cd1 wooo need sleep -- all the patches are due to libxml developer haste
to obsolete code that other software (dia) still use in their
5/20/2001 software release >sigh< -- this fixes the reported dia
breakage on ports@
2001-06-02 11:03:22 +00:00

30 lines
960 B
Plaintext

--- objects/custom/shape_info.c.orig Fri Jun 1 02:15:40 2001
+++ objects/custom/shape_info.c Fri Jun 1 02:16:13 2001
@@ -501,7 +501,7 @@ static void
parse_svg_node(ShapeInfo *info, xmlNodePtr node, xmlNsPtr svg_ns,
GraphicStyle *style)
{
- CHAR *str;
+ char *str;
char *old_locale;
/* walk SVG node ... */
@@ -868,7 +868,7 @@ load_shape_info(const gchar *filename)
for (pt_node = node->childs; pt_node != NULL; pt_node = pt_node->next) {
if (pt_node->ns == shape_ns && !strcmp(pt_node->name, "point")) {
Point pt = { 0.0, 0.0 };
- CHAR *str;
+ char *str;
str = xmlGetProp(pt_node, "x");
if (str) {
@@ -891,7 +891,7 @@ load_shape_info(const gchar *filename)
info->connections = (Point *)arr->data;
g_array_free(arr, FALSE);
} else if (node->ns == shape_ns && !strcmp(node->name, "textbox")) {
- CHAR *str;
+ char *str;
str = xmlGetProp(node, "x1");
if (str) {