New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on sheet printing #349

Closed
hsoft opened this Issue Jun 22, 2013 · 1 comment

Comments

Projects
None yet
1 participant
@hsoft
Owner

hsoft commented Jun 22, 2013

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

@hsoft hsoft closed this Jun 22, 2013

@hsoft

This comment has been minimized.

Owner

hsoft commented Jun 22, 2013

(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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment