do not remember when theme name is empty

This commit is contained in:
Andreas Preikschat 2013-07-06 20:33:45 +02:00
parent bcc8853857
commit 1aac52de8c

View File

@ -107,7 +107,7 @@ class Renderer(object):
del self._theme_dimensions[old_theme_name]
if theme_name in self._theme_dimensions:
del self._theme_dimensions[theme_name]
if not only_delete:
if not only_delete and theme_name:
self._set_theme(theme_name)
def _set_theme(self, theme_name):