summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS3
-rw-r--r--src/PSEditor.cxx4
-rw-r--r--src/Postscript.cxx4
3 files changed, 7 insertions, 4 deletions
diff --git a/NEWS b/NEWS
index 896f55e..637dc6e 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,9 @@
flpsed ChangeLog
=================
+flpsed-0.2.1
+ - fix segfault when reloading documents
+
flpsed-0.2
- Change internal format to allow for more compatible PostScript code.
- Improve PostScript output.
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) {