diff options
author | Matt Wilson <msw@redhat.com> | 2000-03-04 18:07:11 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2000-03-04 18:07:11 +0000 |
commit | 71a9c7247861070c60c29046b004738dba9071df (patch) | |
tree | 0561bf8524b26e6f9f69fd7ed7f3ad1dda0fe48c /xf86config.py | |
parent | 813e02a2d13866a289fbd430098906f562cca87a (diff) | |
download | anaconda-71a9c7247861070c60c29046b004738dba9071df.tar.gz anaconda-71a9c7247861070c60c29046b004738dba9071df.tar.xz anaconda-71a9c7247861070c60c29046b004738dba9071df.zip |
only add default color depth IF we have a mode here
Diffstat (limited to 'xf86config.py')
-rw-r--r-- | xf86config.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xf86config.py b/xf86config.py index 9c245b0ef..c7e616e3c 100644 --- a/xf86config.py +++ b/xf86config.py @@ -828,7 +828,7 @@ Section "Device" maxdepth = -1 for (depth, modes) in self.modes.items (): modes.sort (self.areaCompare) - if string.atoi(depth) > maxdepth: + if len(modes) > 0 and string.atoi(depth) > maxdepth: maxdepth = string.atoi(depth) section = """ |