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/flpsed.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/flpsed.cxx')
-rw-r--r-- | src/flpsed.cxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/flpsed.cxx b/src/flpsed.cxx index be72d7d..eb85736 100644 --- a/src/flpsed.cxx +++ b/src/flpsed.cxx @@ -1,5 +1,5 @@ // -// "$Id: flpsed.cxx,v 1.15 2004/10/12 20:52:23 hofmann Exp $" +// "$Id: flpsed.cxx,v 1.16 2004/10/13 18:03:08 hofmann Exp $" // // flpsed program. // @@ -139,7 +139,6 @@ void about_cb() { "PostScript is a registered trademark of Adobe Systems"); } - void size_cb(Fl_Widget *w, void *) { Fl_Menu_* mw = (Fl_Menu_*)w; const Fl_Menu_Item* m = mw->mvalue(); @@ -157,10 +156,12 @@ void edit_tag_cb() { char *tag = gsw_p->get_tag(); const char *new_tag; new_tag = fl_input("Tag Name", tag?tag:""); - if (strcmp(new_tag, "") != 0) { - gsw_p->set_tag(new_tag); - } else { - gsw_p->set_tag(NULL); + if (new_tag) { + if (strcmp(new_tag, "") != 0) { + gsw_p->set_tag(new_tag); + } else { + gsw_p->set_tag(NULL); + } } } |