From 5efff27bf40d55e82c1da3d3c81d94fac3f1ef0a Mon Sep 17 00:00:00 2001 From: "Craig J. Anderson" Date: Tue, 17 Jul 2012 00:24:09 +0000 Subject: [PATCH] Paul found a strange error. Using the book report. when a self._user.begin_progress is started, it must be finished in the same method. If not, the progress box will not go away. svn: r20016 --- src/plugins/drawreport/AncestorTree.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/plugins/drawreport/AncestorTree.py b/src/plugins/drawreport/AncestorTree.py index 93c1f37dd..bf7f192ba 100644 --- a/src/plugins/drawreport/AncestorTree.py +++ b/src/plugins/drawreport/AncestorTree.py @@ -743,9 +743,14 @@ class AncestorTree(Report): scale = self.canvas.scale_report(one_page, scale_report != 0, scale_report == 2) + + self._user.step_progress() + if scale != 1: self.scale_styles(scale) + self._user.end_progress() + def write_report(self): one_page = self.connect.get_val("resize_page") @@ -770,7 +775,6 @@ class AncestorTree(Report): if prnnum: page_num_box = PageNumberBox(self.doc, 'AC2-box') - self._user.step_progress() ##################### #ok, everyone is now ready to print on the canvas. Paginate? self.canvas.paginate(colsperpage, one_page) @@ -780,7 +784,6 @@ class AncestorTree(Report): #lets finally make some pages!!! ##################### pages = self.canvas.page_count(incblank) - self._user.end_progress() self._user.begin_progress( _('Ancestor Tree'), _('Printing the Tree...'), pages)