Crash on sheet printing
Reported by Virgil Dupras | November 7th, 2012 @ 04:40 PM
It seems that adding support for split printing under Qt introduced a crash for split printing:
Application Name: moneyGuru
Version: 2.6.1
Traceback (most recent call last):
File "/usr/share/moneyguru/qt/controller/main_window.py", line 422, in _print
currentView.fitViewsForPrint(viewPrinter)
File "/usr/share/moneyguru/qt/controller/account_sheet_view.py", line 22, in fitViewsForPrint
viewPrinter.fitTree(self.sheet)
File "/usr/share/moneyguru/qt/print_/__init__.py", line 65, in fitTree
self._fitItemView(TreePrintDatasource(self.model, tree))
File "/usr/share/moneyguru/qt/print_/__init__.py", line 43, in _fitItemView
page.fit(element, expandV=True)
File "/usr/share/moneyguru/qt/print_/layout.py", line 121, in fit
element.placed()
File "/usr/share/moneyguru/qt/print_/item_view.py", line 172, in placed
splitCount = self.ds.splitCount(rowIndex)
File "/usr/share/moneyguru/qt/print_/item_view.py", line 53, in splitCount
return self.printViewModel.split_count_at_row(rowIndex)
AttributeError: 'PrintView' object has no attribute 'split_count_at_row'
Comments and changes to this ticket
-
Virgil Dupras November 7th, 2012 @ 05:05 PM
- State changed from accepted to fixed
(from [7ef972638a8c]) [#349 state:fixed] Moved split*() methods out of qt.print_.ItemPrintDatasource.
These methods didn't belong there, but rather in TablePrintDatasource. They
caused a crash when printing a tree view.
https://bitbucket.org/hsoft/moneyguru/changeset/7ef972638a8c/
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป