diff --git a/weathercomponent/src/Components/Renderer/MSNWeatherPixmap.py b/weathercomponent/src/Components/Renderer/MSNWeatherPixmap.py index bd1b5fd9b..9a7bebde4 100644 --- a/weathercomponent/src/Components/Renderer/MSNWeatherPixmap.py +++ b/weathercomponent/src/Components/Renderer/MSNWeatherPixmap.py @@ -51,7 +51,10 @@ def updateIcon(self, filename): if (self.iconFileName != new_IconFileName): self.iconFileName = new_IconFileName self.pix = LoadPixmap(self.iconFileName) - self.instance.setPixmapScale(BT_SCALE | BT_KEEP_ASPECT_RATIO) + try: + self.instance.setPixmapScale(BT_SCALE | BT_KEEP_ASPECT_RATIO) + except: + self.instance.setScale(1) self.instance.setPixmap(self.pix) def changed(self, what): diff --git a/weatherplugin/src/plugin.py b/weatherplugin/src/plugin.py index 347b9d729..a9ad62ccf 100644 --- a/weatherplugin/src/plugin.py +++ b/weatherplugin/src/plugin.py @@ -270,5 +270,8 @@ def updateIcon(self, filename): if (self.IconFileName != new_IconFileName): self.IconFileName = new_IconFileName self.pix = LoadPixmap(self.IconFileName) - self.instance.setPixmapScale(BT_SCALE | BT_KEEP_ASPECT_RATIO) + try: + self.instance.setPixmapScale(BT_SCALE | BT_KEEP_ASPECT_RATIO) + except: + self.instance.setScale(1) self.instance.setPixmap(self.pix)