Commit 373cd676 authored by Jody Goldberg's avatar Jody Goldberg

Doh!

parent 21c220c2
......@@ -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_strcmp (attrs[1], "points"))
if (!strcmp (attrs[1], "points"))
pu->desired_display = UNIT_POINTS;
else if (!g_strcmp (attrs[1], "mm"))
else if (!strcmp (attrs[1], "mm"))
pu->desired_display = UNIT_MILLIMETER;
else if (!g_strcmp (attrs[1], "cm"))
else if (!strcmp (attrs[1], "cm"))
pu->desired_display = UNIT_CENTIMETER;
else if (!g_strcmp (attrs[1], "in"))
else if (!strcmp (attrs[1], "in"))
pu->desired_display = UNIT_INCH;
} else
xml2UnknownAttr (state, attrs, "Margin");
......
......@@ -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_strcmp (attrs[1], "points"))
if (!strcmp (attrs[1], "points"))
pu->desired_display = UNIT_POINTS;
else if (!g_strcmp (attrs[1], "mm"))
else if (!strcmp (attrs[1], "mm"))
pu->desired_display = UNIT_MILLIMETER;
else if (!g_strcmp (attrs[1], "cm"))
else if (!strcmp (attrs[1], "cm"))
pu->desired_display = UNIT_CENTIMETER;
else if (!g_strcmp (attrs[1], "in"))
else if (!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_strcmp (txt, "mm"))
else if (!strcmp (txt, "mm"))
pu->desired_display = UNIT_MILLIMETER;
else if (!g_strcmp (txt, "cm"))
else if (!strcmp (txt, "cm"))
pu->desired_display = UNIT_CENTIMETER;
else if (!g_strcmp (txt, "in"))
else if (!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_strcmp (attrs[1], "points"))
if (!strcmp (attrs[1], "points"))
pu->desired_display = UNIT_POINTS;
else if (!g_strcmp (attrs[1], "mm"))
else if (!strcmp (attrs[1], "mm"))
pu->desired_display = UNIT_MILLIMETER;
else if (!g_strcmp (attrs[1], "cm"))
else if (!strcmp (attrs[1], "cm"))
pu->desired_display = UNIT_CENTIMETER;
else if (!g_strcmp (attrs[1], "in"))
else if (!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