summaryrefslogtreecommitdiff
path: root/src/PSEditor.cxx
diff options
context:
space:
mode:
authorJohannes Hofmann <johannes.hofmann@gmx.de>2004-07-28 18:15:48 +0000
committerJohannes Hofmann <johannes.hofmann@gmx.de>2004-07-28 18:15:48 +0000
commitfcbe89c0c06b39a1fab26e2908788b01283e4f87 (patch)
tree0237cc09f1e2c2f76a0113885ecfcbce160fae0b /src/PSEditor.cxx
parentea40d16b80b8cdd7dbf17ef36c8e84d86c9a58be (diff)
fix segfault when reloading documents
fix segfault when reloading documents
Diffstat (limited to 'src/PSEditor.cxx')
-rw-r--r--src/PSEditor.cxx4
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++;