diff options
author | Johannes Hofmann <johannes.hofmann@gmx.de> | 2004-10-13 16:03:08 +0000 |
---|---|---|
committer | Johannes Hofmann <johannes.hofmann@gmx.de> | 2004-10-13 16:03:08 +0000 |
commit | aa60a0e14a2f186f1b8d282fdc377889a32fada9 (patch) | |
tree | 6ef5107cd97d51c2e5660f9afc696c4d7cd2dae5 /src/PSEditWidget.cxx | |
parent | be8b4a78d6bcfd5738864cea03f8a218724f6397 (diff) |
- add save/restore for tags - minor fixes for tag handling
- add save/restore for tags
- minor fixes for tag handling
Diffstat (limited to 'src/PSEditWidget.cxx')
-rw-r--r-- | src/PSEditWidget.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
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; } |