Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2018-07-18 12:25:09 -0400
committerAlexander Kurtakov2018-07-18 12:25:09 -0400
commit8ea2279da6b3c2dfdb97da2d4f4000a9d091704b (patch)
tree52ab53dd17d53a20c8741da535b34db0a1bae86d /org.eclipse.ui.workbench.texteditor
parent8f5e34a7b9e0b614db5554cdc0d42a24e4cd9912 (diff)
downloadeclipse.platform.text-8ea2279da6b3c2dfdb97da2d4f4000a9d091704b.tar.gz
eclipse.platform.text-8ea2279da6b3c2dfdb97da2d4f4000a9d091704b.tar.xz
eclipse.platform.text-8ea2279da6b3c2dfdb97da2d4f4000a9d091704b.zip
More deprecated getAverageCharWidth fixes.
Change-Id: I5a696c6973a78339afaf0323fd081e2b370d0a52 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'org.eclipse.ui.workbench.texteditor')
-rw-r--r--org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/StatusLineContributionItem.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/StatusLineContributionItem.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/StatusLineContributionItem.java
index 51396e6ef..5dff42128 100644
--- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/StatusLineContributionItem.java
+++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/StatusLineContributionItem.java
@@ -206,7 +206,7 @@ public class StatusLineContributionItem extends ContributionItem implements ISta
if (fFixedWidth < 0) {
GC gc= new GC(control);
gc.setFont(control.getFont());
- fFixedWidth= gc.getFontMetrics().getAverageCharWidth() * fWidthInChars;
+ fFixedWidth = (int) gc.getFontMetrics().getAverageCharacterWidth() * fWidthInChars;
fFixedWidth += INDENT * 2;
gc.dispose();
}

Back to the top