Commit 57bd451b authored by Alexander Larsson's avatar Alexander Larsson

New load/save method for strings. Fixes a lot of problems.

Update statusbar when saving file.
parent 3ffe75a4
1999-02-28 Alexander Larsson <alex@c125.ryd.student.liu.se>
* lib/dia_xml.c:
Changed string saving/loading to a new method. This should
be much better att handling &,<,> and whitespaces.
Loading strings of the old kind is still supported for backwards
compatibility.
* samples/ER-demo.dia:
* samples/UML-demo.dia:
Updated to use the new strings.
* app/load_save.c:
statusbar modified update fix.
1999-02-27 Seth Alves <alves@hungry.com>
* app/app_procs.c (app_init): added a --export-to-ps option
......
......@@ -328,8 +328,7 @@ file_export_to_eps_callback(GtkWidget *widget, gpointer data)
/* set a default file name */
if (! ddisp->diagram->unsaved)
{
if (! ddisp->diagram->unsaved) {
char *last_slash;
char *last_dot;
char *ext_index;
......@@ -339,7 +338,7 @@ file_export_to_eps_callback(GtkWidget *widget, gpointer data)
/* put a .ps extention on the file name */
last_slash = strrchr (fn, '/');
last_dot = strrchr (fn, '.');
if (last_slash && last_dot && last_dot > last_slash)
if (last_slash && last_dot && (last_dot > last_slash))
ext_index = last_dot;
else if ((! last_slash) && last_dot)
ext_index = last_dot;
......
......@@ -418,7 +418,7 @@ diagram_save(Diagram *dia, char *filename)
return FALSE;
dia->unsaved = FALSE;
dia->modified = FALSE;
diagram_set_modified (dia, FALSE);
return TRUE;
}
......
No preview for this file type
No preview for this file type
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