Crash on sheet printing #349

hsoft opened this Issue Jun 22, 2013 · 1 comment


None yet

1 participant

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/", line 422, in print
File "/usr/share/moneyguru/qt/controller/", line 22, in fitViewsForPrint
File "/usr/share/moneyguru/qt/print
/", line 65, in fitTree
self.fitItemView(TreePrintDatasource(self.model, tree))
File "/usr/share/moneyguru/qt/print
/", line 43, in fitItemView, expandV=True)
File "/usr/share/moneyguru/qt/print
/", line 121, in fit
File "/usr/share/moneyguru/qt/print_/", line 172, in placed
splitCount = self.ds.splitCount(rowIndex)
File "/usr/share/moneyguru/qt/print_/", 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 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.

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