diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java index e61fa23614f..ead395517d4 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java @@ -5644,7 +5644,7 @@ void apply() { */ public Point stringExtent (String string) { if (string == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); - return DPIUtil.scaleDown(drawable, stringExtentInPixels(string), getZoom()); + return DPIUtil.scaleDown(drawable, stringExtentInPixels(string), data.font.zoom); } Point stringExtentInPixels (String string) { @@ -5724,7 +5724,7 @@ public Point textExtent (String string) { * */ public Point textExtent (String string, int flags) { - return DPIUtil.scaleDown(drawable, textExtentInPixels(string, flags), getZoom()); + return DPIUtil.scaleDown(drawable, textExtentInPixels(string, flags), data.font.zoom); } Point textExtentInPixels(String string, int flags) {