diff options
author | Lakshmi Shanmugam <lshanmug@in.ibm.com> | 2012-08-27 18:38:03 +0530 |
---|---|---|
committer | Lakshmi Shanmugam <lshanmug@in.ibm.com> | 2012-08-27 18:38:03 +0530 |
commit | d76702a2326c8925f4c372c75a6a780c55def417 (patch) | |
tree | e6e7a9c3c053a65982bf187f2d391c6bd259858d | |
parent | ddd37d85332b6f06048142632a9d3dfc9239b814 (diff) | |
download | eclipse.platform.swt-d76702a2326c8925f4c372c75a6a780c55def417.tar.gz eclipse.platform.swt-d76702a2326c8925f4c372c75a6a780c55def417.tar.xz eclipse.platform.swt-d76702a2326c8925f4c372c75a6a780c55def417.zip |
Bug 387980-Negative zoom factor reported from magnification gesture
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Control.java | 2 |
1 files changed, 1 insertions, 1 deletions
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: |