Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Schindl2013-12-21 03:13:39 -0500
committerTom Schindl2013-12-21 03:13:39 -0500
commit68040f106677b088825381a167cc4f4977b5b251 (patch)
tree9ec93557553a884de997542b1f14858bcf2559bd
parentb3cdb2e1de5af280d1b742ba044f31dae8254ede (diff)
downloadorg.eclipse.efxclipse-68040f106677b088825381a167cc4f4977b5b251.tar.gz
org.eclipse.efxclipse-68040f106677b088825381a167cc4f4977b5b251.tar.xz
org.eclipse.efxclipse-68040f106677b088825381a167cc4f4977b5b251.zip
Bug 424566 - Stylesheets contributed without themeId so be added to ANY
theme
-rwxr-xr-xbundles/runtime/org.eclipse.fx.ui.theme/src/org/eclipse/fx/ui/theme/internal/DefaultThemeManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/runtime/org.eclipse.fx.ui.theme/src/org/eclipse/fx/ui/theme/internal/DefaultThemeManager.java b/bundles/runtime/org.eclipse.fx.ui.theme/src/org/eclipse/fx/ui/theme/internal/DefaultThemeManager.java
index 2eff4b589..4dc5253cd 100755
--- a/bundles/runtime/org.eclipse.fx.ui.theme/src/org/eclipse/fx/ui/theme/internal/DefaultThemeManager.java
+++ b/bundles/runtime/org.eclipse.fx.ui.theme/src/org/eclipse/fx/ui/theme/internal/DefaultThemeManager.java
@@ -120,7 +120,7 @@ public class DefaultThemeManager implements ThemeManager {
if (e.getName().equals("stylesheet")) {
String themeId = e.getAttribute(ATT_THEME_ID);
for (Theme t : themes) {
- if (t.getId().equals(themeId)) {
+ if (t.getId().equals(themeId) || themeId == null || themeId.isEmpty()) {
((ThemeImpl)t).addStylesheet(e);
}
}

Back to the top