fix typo to fix skin resolution change
authorFelix Domke <tmbinc@elitedvb.net>
Wed, 11 Jun 2008 21:35:50 +0000 (21:35 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Wed, 11 Jun 2008 21:35:50 +0000 (21:35 +0000)
skin.py

diff --git a/skin.py b/skin.py
index 9eb5d4f5660b020e43f61015a6671b3ceb62560b..f8a284f1cbea7f1557524e987736fc3a5a0de9b9 100644 (file)
--- a/skin.py
+++ b/skin.py
@@ -237,7 +237,7 @@ def loadSingleSkinData(desktop, skin, path_prefix):
                        id = 0
                if id == 0: # framebuffer
                        for res in c.findall("resolution"):
                        id = 0
                if id == 0: # framebuffer
                        for res in c.findall("resolution"):
-                               get_attr = c.attrib.get
+                               get_attr = res.attrib.get
                                xres = get_attr("xres")
                                if xres:
                                        xres = int(xres)
                                xres = get_attr("xres")
                                if xres:
                                        xres = int(xres)