diff options
| author | tassaron | 2017-08-20 17:47:00 -0400 |
|---|---|---|
| committer | tassaron | 2017-08-20 17:47:00 -0400 |
| commit | be9eb9077b2234e6d91c78d70bb8e1d8347b03aa (patch) | |
| tree | 12688f1846cfc535408d2a3953d0731eed98fd10 /src/gui/preview_thread.py | |
| parent | d4b63e4d4612db262424fe10c83f8eaa4f741f24 (diff) | |
relative widgets scale properly when undoing at different resolutions
Diffstat (limited to 'src/gui/preview_thread.py')
| -rw-r--r-- | src/gui/preview_thread.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/preview_thread.py b/src/gui/preview_thread.py index 33a9e7a..d3e0581 100644 --- a/src/gui/preview_thread.py +++ b/src/gui/preview_thread.py @@ -45,8 +45,6 @@ class Worker(QtCore.QObject): @pyqtSlot() def process(self): - width = int(self.settings.value('outputWidth')) - height = int(self.settings.value('outputHeight')) try: nextPreviewInformation = self.queue.get(block=False) while self.queue.qsize() >= 2: @@ -54,12 +52,14 @@ class Worker(QtCore.QObject): self.queue.get(block=False) except Empty: continue + width = int(self.settings.value('outputWidth')) + height = int(self.settings.value('outputHeight')) if self.background.width != width \ or self.background.height != height: self.background = Checkerboard(width, height) frame = self.background.copy() - log.debug('Creating new preview frame') + log.info('Creating new preview frame') components = nextPreviewInformation["components"] for component in reversed(components): try: |
