Index: trunk/src_plugins/io_lihata/read.c =================================================================== --- trunk/src_plugins/io_lihata/read.c (revision 27326) +++ trunk/src_plugins/io_lihata/read.c (revision 27327) @@ -2408,6 +2408,12 @@ } else res = (parse_data(NULL, buff->Data, datand, &DUMMY_BUFFER_SUBC) == NULL); + + if (res == 0) { + lht_node_t *ndx = lht_dom_hash_get(doc->root, "x"), *ndy = lht_dom_hash_get(doc->root, "y"); + parse_coord(&buff->X, ndx); + parse_coord(&buff->Y, ndy); + } } else { iolht_error(doc->root, "Error loading '%s': not a pcb-rnd paste buffer\n", filename); Index: trunk/src_plugins/io_lihata/write.c =================================================================== --- trunk/src_plugins/io_lihata/write.c (revision 27326) +++ trunk/src_plugins/io_lihata/write.c (revision 27327) @@ -1726,6 +1726,8 @@ doc->root = lht_dom_node_alloc(LHT_HASH, "pcb-rnd-buffer-v6"); lht_dom_hash_put(doc->root, build_data(buff->Data)); + lht_dom_hash_put(doc->root, build_textf("x", CFMT, buff->X)); + lht_dom_hash_put(doc->root, build_textf("y", CFMT, buff->Y)); clean_invalid(doc->root); /* remove invalid nodes placed for persistency */ res = lht_dom_export(doc->root, f, "");