From d76702a2326c8925f4c372c75a6a780c55def417 Mon Sep 17 00:00:00 2001 From: Lakshmi Shanmugam Date: Mon, 27 Aug 2012 18:38:03 +0530 Subject: Bug 387980-Negative zoom factor reported from magnification gesture --- .../Eclipse SWT/cocoa/org/eclipse/swt/widgets/Control.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Control.java index 2319721824..c5f471ed11 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Control.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Control.java @@ -1486,7 +1486,7 @@ boolean gestureEvent(int /*long*/ id, int /*long*/ eventPtr, int detail) { break; } case SWT.GESTURE_MAGNIFY: - display.magnification += nsEvent.magnification(); + display.magnification *= (1.0 + nsEvent.magnification()); event.magnification = display.magnification; break; case SWT.GESTURE_PAN: -- cgit