From 9a1c81230b6c385ec1d99d9ebbb68c4944174b43 Mon Sep 17 00:00:00 2001 From: Nick Conway Date: Tue, 15 May 2018 20:44:32 -0400 Subject: [PATCH] Fixed the SVG export saveSVGDialogCallback() method for the new attribute storing method for view root items --- cadnano/views/cnmainwindow.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cadnano/views/cnmainwindow.py b/cadnano/views/cnmainwindow.py index 754e4446..61aaccf8 100644 --- a/cadnano/views/cnmainwindow.py +++ b/cadnano/views/cnmainwindow.py @@ -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())