diff options
| author | tassaron | 2017-08-01 21:57:36 -0400 |
|---|---|---|
| committer | tassaron | 2017-08-01 21:57:36 -0400 |
| commit | 5784cdbcf87556b61519782cd1fc27065ffbc631 (patch) | |
| tree | 74a7c2c473139b5cd8c1a644a53d260a9829a441 /src/mainwindow.py | |
| parent | 3c1b52205f183e9a2c943c5f666ed2c01db3aaf5 (diff) | |
x/y pixel values update to match output resolution
Diffstat (limited to 'src/mainwindow.py')
| -rw-r--r-- | src/mainwindow.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mainwindow.py b/src/mainwindow.py index d9e95e2..1c8806d 100644 --- a/src/mainwindow.py +++ b/src/mainwindow.py @@ -644,9 +644,12 @@ class MainWindow(QtWidgets.QMainWindow): def updateResolution(self): resIndex = int(self.window.comboBox_resolution.currentIndex()) res = Core.resolutions[resIndex].split('x') + changed = res[0] != self.settings.value("outputWidth") self.settings.setValue('outputWidth', res[0]) self.settings.setValue('outputHeight', res[1]) - self.drawPreview() + if changed: + for i in range(len(self.core.selectedComponents)): + self.core.updateComponent(i) def drawPreview(self, force=False, **kwargs): '''Use autosave keyword arg to force saving or not saving if needed''' |
