diff options
author | Johnathan Corgan <johnathan@corganlabs.com> | 2016-11-12 06:26:59 -0800 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2016-11-12 06:26:59 -0800 |
commit | f708cc395fa46264f692180ec4ced72fb6de62f7 (patch) | |
tree | 69d13d8be518cac56fe9ad66c606c4a6abab3d28 /grc/gui/ActionHandler.py | |
parent | fd3227859623f8f2a294ce1b8c38489eb1415eea (diff) | |
parent | 8ffadf88423290ad9b24a63a7d67ec36ccd5975b (diff) |
Merge remote-tracking branch 'skoslowski/dpi_fix' into maint
Diffstat (limited to 'grc/gui/ActionHandler.py')
-rw-r--r-- | grc/gui/ActionHandler.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/grc/gui/ActionHandler.py b/grc/gui/ActionHandler.py index f18fcea3e1..ec5ac7c574 100644 --- a/grc/gui/ActionHandler.py +++ b/grc/gui/ActionHandler.py @@ -23,7 +23,7 @@ import gtk import os import subprocess -from . import Dialogs, Preferences, Actions, Executor, Constants +from . import Dialogs, Preferences, Actions, Executor, Constants, Utils from .FileDialogs import (OpenFlowGraphFileDialog, SaveFlowGraphFileDialog, SaveConsoleFileDialog, SaveScreenShotDialog, OpenQSSFileDialog) @@ -688,8 +688,10 @@ class ActionHandler: Actions.FLOW_GRAPH_SAVE.set_sensitive(not page.get_saved()) main.update() try: #set the size of the flow graph area (if changed) - new_size = (flow_graph.get_option('window_size') or - self.platform.config.default_canvas_size) + new_size = Utils.scale( + flow_graph.get_option('window_size') or + self.platform.config.default_canvas_size + ) if flow_graph.get_size() != tuple(new_size): flow_graph.set_size(*new_size) except: pass |