Image item with no image in service manager possible

Bug #598415 reported by Andreas Preikschat
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenLP
Fix Released
Undecided
Tim Bentley

Bug Description

Hello!

1) Add a few images to the service manager.
2) Send the item live by double clicking it.
2) Click "Maintain Item" and delete all images.
3) Click "Save"

Now the image item consists of no image at all, which is odd. Of course you can add other images to the item (but does that really makes sense?).

When I double click the item in the service manager my command line throws the following errors:
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/openlp/core/ui/servicemanager.py", line 851, in makeLive
    self.serviceItems[item][u'service_item'], count)
  File "/usr/lib/pymodules/python2.6/openlp/core/ui/slidecontroller.py", line 511, in addServiceManagerItem
    self.onSlideSelected()
  File "/usr/lib/pymodules/python2.6/openlp/core/ui/slidecontroller.py", line 772, in onSlideSelected
    frame = self.serviceItem.get_rendered_frame(row)
  File "/usr/lib/pymodules/python2.6/openlp/core/lib/serviceitem.py", line 374, in get_rendered_frame
    return {u'main':self._raw_frames[row][u'image'], u'trans':None}
IndexError: list index out of range

Debug Log: http://www.pastebin.org/357885

Cheers

Tim Bentley (trb143)
Changed in openlp:
status: New → Confirmed
milestone: none → 1.9.2
assignee: nobody → Tim Bentley (trb143)
Tim Bentley (trb143)
Changed in openlp:
status: Confirmed → Fix Committed
Tim Bentley (trb143)
Changed in openlp:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.