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/PSEditor.cxx | |
parent | ea40d16b80b8cdd7dbf17ef36c8e84d86c9a58be (diff) |
fix segfault when reloading documents
fix segfault when reloading documents
Diffstat (limited to 'src/PSEditor.cxx')
-rw-r--r-- | src/PSEditor.cxx | 4 |
1 files changed, 2 insertions, 2 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++; |