diff options
author | Chris Goldthorpe | 2009-04-13 16:56:16 +0000 |
---|---|---|
committer | Chris Goldthorpe | 2009-04-13 16:56:16 +0000 |
commit | 89155939d92a8e0311d19df89c331718e2464b2f (patch) | |
tree | b5f33f0322e8afb5e981c33b32bac1e2106c6df9 | |
parent | 36069864e7fe8825f48cd89ae561ebacbdbafb0a (diff) | |
download | eclipse.platform.ua-89155939d92a8e0311d19df89c331718e2464b2f.tar.gz eclipse.platform.ua-89155939d92a8e0311d19df89c331718e2464b2f.tar.xz eclipse.platform.ua-89155939d92a8e0311d19df89c331718e2464b2f.zip |
Add function to restore font scale to default
-rw-r--r-- | org.eclipse.ui.intro.universal/src/org/eclipse/ui/internal/intro/universal/CustomizationContentsArea.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/org.eclipse.ui.intro.universal/src/org/eclipse/ui/internal/intro/universal/CustomizationContentsArea.java b/org.eclipse.ui.intro.universal/src/org/eclipse/ui/internal/intro/universal/CustomizationContentsArea.java index ac0e3baff..051e69d0b 100644 --- a/org.eclipse.ui.intro.universal/src/org/eclipse/ui/internal/intro/universal/CustomizationContentsArea.java +++ b/org.eclipse.ui.intro.universal/src/org/eclipse/ui/internal/intro/universal/CustomizationContentsArea.java @@ -790,6 +790,10 @@ public class CustomizationContentsArea { key = pid + "_" + FontSelection.VAR_FONT_STYLE; //$NON-NLS-1$ String fontStyle = useRelativeFonts.getSelection() ? FontSelection.FONT_RELATIVE : FontSelection.FONT_ABSOLUTE; + if (fontStyle.equals(FontSelection.FONT_ABSOLUTE)) { + // reset font scaling for next time relative is selected + FontSelection.resetScalePercentage(); + } iprefs.put(key, fontStyle); if (toAll) { key = FontSelection.VAR_FONT_STYLE; |