Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Goldthorpe2009-04-13 16:56:16 +0000
committerChris Goldthorpe2009-04-13 16:56:16 +0000
commit89155939d92a8e0311d19df89c331718e2464b2f (patch)
treeb5f33f0322e8afb5e981c33b32bac1e2106c6df9 /org.eclipse.ui.intro.universal
parent36069864e7fe8825f48cd89ae561ebacbdbafb0a (diff)
downloadeclipse.platform.ua-89155939d92a8e0311d19df89c331718e2464b2f.tar.gz
eclipse.platform.ua-89155939d92a8e0311d19df89c331718e2464b2f.tar.xz
eclipse.platform.ua-89155939d92a8e0311d19df89c331718e2464b2f.zip
Add function to restore font scale to default
Diffstat (limited to 'org.eclipse.ui.intro.universal')
-rw-r--r--org.eclipse.ui.intro.universal/src/org/eclipse/ui/internal/intro/universal/CustomizationContentsArea.java4
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;

Back to the top