diff options
author | Ilya Zverev <zverik@textual.ru> | 2016-05-18 15:30:53 +0300 |
---|---|---|
committer | Ilya Zverev <ilya@zverev.info> | 2017-07-04 11:26:12 +0300 |
commit | 497c18a27dfd5acab6ee959f493c23e0780e242e (patch) | |
tree | 17e6008bd3f0f441507152d3ae206599c719b366 /tools/python | |
parent | c342757f9aff8e9f220a15dff970fb32aa34570e (diff) |
[designer] Make designer tool great again
Diffstat (limited to 'tools/python')
-rw-r--r-- | tools/python/stylesheet/drules_info.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/python/stylesheet/drules_info.py b/tools/python/stylesheet/drules_info.py index 97ffa823db..5b0f2acec6 100644 --- a/tools/python/stylesheet/drules_info.py +++ b/tools/python/stylesheet/drules_info.py @@ -41,10 +41,10 @@ def GetClassesZoomRange(drules_path): zooms[1] = elem.scale if zooms[0] != -1: if name in result: - if result[name][0].scale < zooms[0]: - zooms[0] = result[name][0].scale - if result[name][1].scale > zooms[1]: - zooms[1] = result[name][1].scale + if result[name][0]< zooms[0]: + zooms[0] = result[name][0] + if result[name][1]> zooms[1]: + zooms[1] = result[name][1] result[name] = zooms return result |