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
This commit is contained in:
Craig J. Anderson 2012-07-17 00:24:09 +00:00
parent b377893a73
commit 5efff27bf4

View File

@ -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)