Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Crash on sheet printing

#349

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'

Reported by Virgil Dupras · November 7th, 2012 @ 04:40 PM

State: fixed
Milestone: none
Assigned to: Virgil Dupras Virgil Dupras

Activity

  1. Virgil Dupras
    Virgil Dupras
    • 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/

    November 7th, 2012 @ 05:05 PM

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.