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: r20015
This commit is contained in:
Craig J. Anderson 2012-07-17 00:21:14 +00:00
parent 7f5f855df1
commit 83058c7e7b

View File

@ -750,9 +750,13 @@ class AncestorTree(Report):
scale = self.canvas.scale_report(one_page,
scale_report != 0, scale_report == 2)
self._user.step_progress()
if scale != 1 or self.connect.get_val('shadowscale') != 1.0:
self.scale_styles(scale)
self._user.end_progress()
def write_report(self):
one_page = self.connect.get_val("resize_page")
@ -777,7 +781,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)
@ -787,7 +790,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)