diff options
author | Johannes Hofmann <johannes.hofmann@gmx.de> | 2004-07-28 18:15:48 +0000 |
---|---|---|
committer | Johannes Hofmann <johannes.hofmann@gmx.de> | 2004-07-28 18:15:48 +0000 |
commit | fcbe89c0c06b39a1fab26e2908788b01283e4f87 (patch) | |
tree | 0237cc09f1e2c2f76a0113885ecfcbce160fae0b /src | |
parent | ea40d16b80b8cdd7dbf17ef36c8e84d86c9a58be (diff) |
fix segfault when reloading documents
fix segfault when reloading documents
Diffstat (limited to 'src')
-rw-r--r-- | src/PSEditor.cxx | 4 | ||||
-rw-r--r-- | src/Postscript.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/PSEditor.cxx b/src/PSEditor.cxx index 352f401..308d0dd 100644 --- a/src/PSEditor.cxx +++ b/src/PSEditor.cxx @@ -1,5 +1,5 @@ // -// "$Id: PSEditor.cxx,v 1.7 2004/07/20 20:02:07 hofmann Exp $" +// "$Id: PSEditor.cxx,v 1.8 2004/07/28 20:15:48 hofmann Exp $" // // PSEditor routines. // @@ -43,7 +43,7 @@ int PSEditor::handle(int event) { mark_x = Fl::event_x()-x(); mark_y = Fl::event_y()-y(); - fprintf(stderr, "==> %d %d\n", mark_x, mark_y); + if (!set_cur_text(mark_x, mark_y) == 0) { new_text(mark_x, mark_y, ""); mod++; diff --git a/src/Postscript.cxx b/src/Postscript.cxx index 6429863..e0916de 100644 --- a/src/Postscript.cxx +++ b/src/Postscript.cxx @@ -1,5 +1,5 @@ // -// "$Id: Postscript.cxx,v 1.6 2004/07/18 20:49:43 hofmann Exp $" +// "$Id: Postscript.cxx,v 1.7 2004/07/28 20:15:48 hofmann Exp $" // // Postscript handling routines. // @@ -143,7 +143,7 @@ PSParser_2::PSParser_2(PSEditWidget *p) : PSParser(p) { } int PSParser_2::parse(char *line) { - int x1, y1, size, page, dummy; + int x1, y1, size, dummy; char buf[2028]; if (!inside && strcmp(line, PSEDIT_BEGIN) == 0) { |