From aa60a0e14a2f186f1b8d282fdc377889a32fada9 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Wed, 13 Oct 2004 16:03:08 +0000 Subject: - add save/restore for tags - minor fixes for tag handling - add save/restore for tags - minor fixes for tag handling --- src/PSEditWidget.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/PSEditWidget.cxx') diff --git a/src/PSEditWidget.cxx b/src/PSEditWidget.cxx index f6de76d..c10d550 100644 --- a/src/PSEditWidget.cxx +++ b/src/PSEditWidget.cxx @@ -1,5 +1,5 @@ // -// "$Id: PSEditWidget.cxx,v 1.16 2004/10/12 20:52:23 hofmann Exp $" +// "$Id: PSEditWidget.cxx,v 1.17 2004/10/13 18:03:08 hofmann Exp $" // // PSEditWidget routines. // @@ -311,7 +311,11 @@ int PSText::set_tag(const char *t) { if (tag) { free(tag); } - tag = strdup(t); + if (t) { + tag = strdup(t); + } else { + tag = NULL; + } gsew->redraw(); return 0; } -- cgit v1.2.3