Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/TextLayout.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/TextLayout.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/TextLayout.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/TextLayout.java
index ea2ef68cdb..544f7cf40e 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/TextLayout.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/TextLayout.java
@@ -1044,11 +1044,11 @@ public FontMetrics getLineMetrics (int lineIndex) {
int descent = (int)layoutManager.defaultLineHeightForFont(font.handle) - ascent;
ascent = Math.max(ascent, this.ascent);
descent = Math.max(descent, this.descent);
- return FontMetrics.cocoa_new(ascent, descent, 0, 0, ascent + descent);
+ return FontMetrics.cocoa_new(ascent, descent, 0.0, 0, ascent + descent);
}
Rectangle rect = getLineBounds(lineIndex);
int baseline = (int)layoutManager.typesetter().baselineOffsetInLayoutManager(layoutManager, getLineOffsets()[lineIndex]);
- return FontMetrics.cocoa_new(rect.height - baseline, baseline, 0, 0, rect.height);
+ return FontMetrics.cocoa_new(rect.height - baseline, baseline, 0.0, 0, rect.height);
} finally {
if (pool != null) pool.release();
}

Back to the top