From 4ef45e532c786dc02b2c5f2141fb713264143c8c Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Mon, 8 Nov 2004 17:56:00 +0000 Subject: fix tab-stuff fix tab-stuff --- src/PSEditModel.cxx | 5 ++++- src/PSEditWidget.cxx | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/PSEditModel.cxx b/src/PSEditModel.cxx index 7a25a89..f898c50 100644 --- a/src/PSEditModel.cxx +++ b/src/PSEditModel.cxx @@ -1,5 +1,5 @@ // -// "$Id: PSEditModel.cxx,v 1.10 2004/11/08 18:10:34 hofmann Exp $" +// "$Id: PSEditModel.cxx,v 1.11 2004/11/08 18:56:00 hofmann Exp $" // // PSEditWidget routines. // @@ -120,6 +120,9 @@ int PSEditModel::next_text(int p) { if (cur_text) { cur_text = cur_text->get_next(); + } + + if (cur_text) { return 0; } else if (text[p]) { cur_text = text[p]; diff --git a/src/PSEditWidget.cxx b/src/PSEditWidget.cxx index 1e6db7e..95ddbde 100644 --- a/src/PSEditWidget.cxx +++ b/src/PSEditWidget.cxx @@ -1,5 +1,5 @@ // -// "$Id: PSEditWidget.cxx,v 1.25 2004/11/08 18:10:34 hofmann Exp $" +// "$Id: PSEditWidget.cxx,v 1.26 2004/11/08 18:56:00 hofmann Exp $" // // PSEditWidget routines. // @@ -136,7 +136,7 @@ int PSEditWidget::next_text() { t_old = model->get_cur_text(); ret = model->next_text(page); - mod++; + t_new = model->get_cur_text(); if (t_new) { -- cgit v1.2.3