X-Git-Url: http://git.ithinksw.org/ITKit.git/blobdiff_plain/7a218424c6a92eb4979564a7260f862edd46052d..HEAD:/ITZoomWindowEffect.m?ds=sidebyside diff --git a/ITZoomWindowEffect.m b/ITZoomWindowEffect.m index bde7a2d..888e37a 100644 --- a/ITZoomWindowEffect.m +++ b/ITZoomWindowEffect.m @@ -197,6 +197,8 @@ NSPoint translation; NSRect winFrame = [_window frame]; + Zoom = MAX(Zoom, 0.000001); + translation.x = (winFrame.size.width / 2.0); translation.y = (winFrame.size.height / 2.0); transform = CGAffineTransformMakeTranslation(translation.x, translation.y);