Browse Source

Corrected bug: Now deep theme inferitance does not loose resources

svn changeset:435/svn branch:toolkit
tags/6.7.0.beta1
Joonas Lehtinen 17 years ago
parent
commit
ff2ce94eff
1 changed files with 3 additions and 5 deletions
  1. 3
    5
      src/com/itmill/toolkit/terminal/web/CollectionThemeSource.java

+ 3
- 5
src/com/itmill/toolkit/terminal/web/CollectionThemeSource.java View File

@@ -122,13 +122,11 @@ public class CollectionThemeSource implements ThemeSource {

// Get list of themes to look for the resource
List themes = new LinkedList();
if (themeName.length() > 0) {
while (themeName != null && themeName.length() > 0) {
Theme t = this.getThemeByName(themeName);
if (t != null) {
if (t != null)
themes.add(themeName);
if (t.getParent() != null)
themes.add(t.getParent());
}
themeName = t.getParent();
}

// Iterate all themes in list

Loading…
Cancel
Save