Commit 3966f15f authored by Caleb Michael Moore's avatar Caleb Michael Moore

committed makingnonsense patch

parent 7e173e9b
2005-2-10 Caleb Moore <c.moore@student.unsw.edu.au>
* rsvg.c, rsvg-styles.c, rsvg-private.h: Applied patch by "makingnonsense" fixing spelling
2005-2-9 Dom Lachowicz <cinamod@hotmail.com>
* configure.in: Bump version number
......
......@@ -97,7 +97,7 @@ struct RsvgHandle {
double dpi_x;
double dpi_y;
GSList * dimentions;
GSList * dimensions;
GString * title;
GString * desc;
......
......@@ -525,7 +525,7 @@ rsvg_parse_style_arg (RsvgHandle *ctx, RsvgState *state, const char *str)
state->has_font_size = TRUE;
if (ctx != NULL)
{
((RsvgDimentionData *)g_slist_nth(ctx->dimentions,
((RsvgDimentionData *)g_slist_nth(ctx->dimensions,
0)->data)->em
= state->font_size;
}
......@@ -1675,9 +1675,9 @@ rsvg_state_parent (DrawingCtx *ctx)
double
rsvg_state_current_font_size (RsvgHandle *ctx)
{
if (ctx->dimentions == NULL)
if (ctx->dimensions == NULL)
return 12.0;
return ((RsvgDimentionData *)g_slist_nth(ctx->dimentions, 0)->data)->em;
return ((RsvgDimentionData *)g_slist_nth(ctx->dimensions, 0)->data)->em;
}
RsvgPropertyBag *
......
......@@ -1225,7 +1225,7 @@ rsvg_start_element (void *data, const xmlChar *name,
newdimention->width = ctx->width;
newdimention->height = ctx->height;
newdimention->em = rsvg_state_current_font_size(ctx);
ctx->dimentions = g_slist_prepend(ctx->dimentions, newdimention);
ctx->dimensions = g_slist_prepend(ctx->dimensions, newdimention);
bag = rsvg_property_bag_new(atts);
......@@ -1309,12 +1309,12 @@ rsvg_end_element (void *data, const xmlChar *name)
{
RsvgHandle *ctx = (RsvgHandle *)data;
GSList * link = g_slist_nth(ctx->dimentions, 0);
GSList * link = g_slist_nth(ctx->dimensions, 0);
RsvgDimentionData * dead_dimention = (RsvgDimentionData *)link->data;
ctx->width = dead_dimention->width;
ctx->height = dead_dimention->height;
g_free (dead_dimention);
ctx->dimentions = g_slist_delete_link(ctx->dimentions, link);
ctx->dimensions = g_slist_delete_link(ctx->dimensions, link);
if (ctx->handler_nest > 0 && ctx->handler != NULL)
{
......@@ -1759,7 +1759,7 @@ rsvg_handle_init (RsvgHandle * handle)
handle->current_defs_group = NULL;
handle->treebase = NULL;
handle->dimentions = NULL;
handle->dimensions = NULL;
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment