]> git.sur5r.net Git - glabels/blobdiff - glabels2/libglabels/xml-template.c
2008-11-15 Jim Evins <evins@snaught.com>
[glabels] / glabels2 / libglabels / xml-template.c
index 8d83a577a70701d952dfb5afc74b154f89f39618..6f1ae4b852ee5458d6bfde57bf7c3c8f9ae7ae97 100644 (file)
@@ -251,6 +251,8 @@ lgl_xml_template_parse_template_node (const xmlNodePtr template_node)
                        page_width  = paper->width;
                        page_height = paper->height;
                } else {
+                       page_width  = 612;
+                       page_height = 792;
                        g_message (_("Unknown page size id or name \"%s\""),
                                   paper_id);
                }
@@ -728,7 +730,7 @@ lgl_xml_template_create_template_node (const lglTemplate *template,
 
        node = xmlNewChild (root, ns, (xmlChar *)"Template", NULL);
 
-       lgl_xml_set_prop_string (node, "brand", template->part);
+       lgl_xml_set_prop_string (node, "brand", template->brand);
        lgl_xml_set_prop_string (node, "part", template->part);
 
        lgl_xml_set_prop_string (node, "size", template->paper_id);