Skip to content

Commit

Permalink
Fixed the SVG export saveSVGDialogCallback() method for the new attri…
Browse files Browse the repository at this point in the history
…bute storing method for view root items
  • Loading branch information
grinner committed May 16, 2018
1 parent 6d52e65 commit 9a1c812
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cadnano/views/cnmainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -875,12 +875,13 @@ def saveSVGDialogCallback(self, selected: Union[str, list, tuple]):
# Render item-by-item
painter = QPainter()
style_option = QStyleOptionGraphicsItem()
q = [self.pathroot]
q = [self.views[ViewSendEnum.PATH].rootItem()]
# slice_root = self.views[ViewSendEnum.SLICE].rootItem()
painter.begin(generator)
while q:
graphics_item = q.pop()
transform = graphics_item.itemTransform(self.sliceroot)[0]
painter.setTransform(transform)
# transform = graphics_item.itemTransform(slice_root)[0]
# painter.setTransform(transform)
if graphics_item.isVisible():
graphics_item.paint(painter, style_option, None)
q.extend(graphics_item.childItems())
Expand Down

0 comments on commit 9a1c812

Please sign in to comment.