aboutsummaryrefslogtreecommitdiff
path: root/src/component.py
diff options
context:
space:
mode:
authortassaron2017-08-03 12:16:57 -0400
committertassaron2017-08-03 12:16:57 -0400
commit219e846984bb10e9674432fa7aeac4157635c743 (patch)
tree9f9fe220c58fec91292466cb8968abe701e34a3a /src/component.py
parent6611492b30a7daf7bdbe77f6e12f9d322bdd90c1 (diff)
relativeWidgets might as well be a list
Diffstat (limited to 'src/component.py')
-rw-r--r--src/component.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/component.py b/src/component.py
index 5dfe2ab..c5bc44b 100644
--- a/src/component.py
+++ b/src/component.py
@@ -304,10 +304,7 @@ class Component(QtCore.QObject, metaclass=ComponentMetaclass):
elif attr in self._relativeWidgets:
# Relative widgets: number scales to fit export resolution
- if self._relativeWidgets[attr] == 'x':
- dimension = self.width
- else:
- dimension = self.height
+ dimension = self.width
try:
oldUserValue = getattr(self, attr)
except AttributeError: