Commit 21c220c2 authored by Jody Goldberg's avatar Jody Goldberg Committed by Jody Goldberg

make units case sensitive.


2001-03-08  Jody Goldberg <jgoldberg@home.com>

	* src/xml-io.c (xml_get_print_unit) : make units case sensitive.
parent 33353b9c
2001-03-08 Jody Goldberg <jgoldberg@home.com>
* src/xml-io.c (xml_get_print_unit) : make units case sensitive.
2001-03-05 Zbigniew Chyla <cyba@gnome.pl>
* configure.in:
......
2001-03-08 Jody Goldberg <jgoldberg@home.com>
* src/xml-io.c (xml_get_print_unit) : make units case sensitive.
2001-03-05 Zbigniew Chyla <cyba@gnome.pl>
* configure.in:
......
2001-03-08 Jody Goldberg <jgoldberg@home.com>
* src/xml-io.c (xml_get_print_unit) : make units case sensitive.
2001-03-05 Zbigniew Chyla <cyba@gnome.pl>
* configure.in:
......
2001-03-08 Jody Goldberg <jgoldberg@home.com>
* src/xml-io.c (xml_get_print_unit) : make units case sensitive.
2001-03-05 Zbigniew Chyla <cyba@gnome.pl>
* configure.in:
......
2001-03-08 Jody Goldberg <jgoldberg@home.com>
* src/xml-io.c (xml_get_print_unit) : make units case sensitive.
2001-03-05 Zbigniew Chyla <cyba@gnome.pl>
* configure.in:
......
2001-03-08 Jody Goldberg <jgoldberg@home.com>
* xml2.c (xml2ParseMargin) : Make units case sensitive.
2001-02-25 Zbigniew Chyla <cyba@gnome.pl>
* Makefile.am: Removed -DGNUMERIC_VERSION, the macro is already
......
......@@ -586,13 +586,13 @@ xml2ParseMargin (XML2ParseState *state, CHAR const **attrs)
if (xml2ParseAttrDouble (attrs, "Points", &points))
pu->points = points;
else if (!strcmp (attrs[0], "PrefUnit")) {
if (!g_strcasecmp (attrs[1], "points"))
if (!g_strcmp (attrs[1], "points"))
pu->desired_display = UNIT_POINTS;
else if (!g_strcasecmp (attrs[1], "mm"))
else if (!g_strcmp (attrs[1], "mm"))
pu->desired_display = UNIT_MILLIMETER;
else if (!g_strcasecmp (attrs[1], "cm"))
else if (!g_strcmp (attrs[1], "cm"))
pu->desired_display = UNIT_CENTIMETER;
else if (!g_strcasecmp (attrs[1], "in"))
else if (!g_strcmp (attrs[1], "in"))
pu->desired_display = UNIT_INCH;
} else
xml2UnknownAttr (state, attrs, "Margin");
......
2001-03-08 Jody Goldberg <jgoldberg@home.com>
* xml2.c (xml2ParseMargin) : Make units case sensitive.
2001-02-25 Zbigniew Chyla <cyba@gnome.pl>
* Makefile.am: Removed -DGNUMERIC_VERSION, the macro is already
......
......@@ -586,13 +586,13 @@ xml2ParseMargin (XML2ParseState *state, CHAR const **attrs)
if (xml2ParseAttrDouble (attrs, "Points", &points))
pu->points = points;
else if (!strcmp (attrs[0], "PrefUnit")) {
if (!g_strcasecmp (attrs[1], "points"))
if (!g_strcmp (attrs[1], "points"))
pu->desired_display = UNIT_POINTS;
else if (!g_strcasecmp (attrs[1], "mm"))
else if (!g_strcmp (attrs[1], "mm"))
pu->desired_display = UNIT_MILLIMETER;
else if (!g_strcasecmp (attrs[1], "cm"))
else if (!g_strcmp (attrs[1], "cm"))
pu->desired_display = UNIT_CENTIMETER;
else if (!g_strcasecmp (attrs[1], "in"))
else if (!g_strcmp (attrs[1], "in"))
pu->desired_display = UNIT_INCH;
} else
xml2UnknownAttr (state, attrs, "Margin");
......
......@@ -472,11 +472,11 @@ xml_get_print_unit (xmlNodePtr node, PrintUnit * const pu)
if (txt) {
if (!g_strcasecmp (txt, "points"))
pu->desired_display = UNIT_POINTS;
else if (!g_strcasecmp (txt, "mm"))
else if (!g_strcmp (txt, "mm"))
pu->desired_display = UNIT_MILLIMETER;
else if (!g_strcasecmp (txt, "cm"))
else if (!g_strcmp (txt, "cm"))
pu->desired_display = UNIT_CENTIMETER;
else if (!g_strcasecmp (txt, "in"))
else if (!g_strcmp (txt, "in"))
pu->desired_display = UNIT_INCH;
g_free (txt);
}
......
......@@ -586,13 +586,13 @@ xml2ParseMargin (XML2ParseState *state, CHAR const **attrs)
if (xml2ParseAttrDouble (attrs, "Points", &points))
pu->points = points;
else if (!strcmp (attrs[0], "PrefUnit")) {
if (!g_strcasecmp (attrs[1], "points"))
if (!g_strcmp (attrs[1], "points"))
pu->desired_display = UNIT_POINTS;
else if (!g_strcasecmp (attrs[1], "mm"))
else if (!g_strcmp (attrs[1], "mm"))
pu->desired_display = UNIT_MILLIMETER;
else if (!g_strcasecmp (attrs[1], "cm"))
else if (!g_strcmp (attrs[1], "cm"))
pu->desired_display = UNIT_CENTIMETER;
else if (!g_strcasecmp (attrs[1], "in"))
else if (!g_strcmp (attrs[1], "in"))
pu->desired_display = UNIT_INCH;
} else
xml2UnknownAttr (state, attrs, "Margin");
......
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