From f073735d2f5e55d1ee8efbe4a01c326174a56a87 Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Wed, 26 Sep 2012 17:31:45 +0300 Subject: [PATCH] [ios] Minor fix --- iphone/Maps/Classes/MapViewController.mm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/iphone/Maps/Classes/MapViewController.mm b/iphone/Maps/Classes/MapViewController.mm index edd89bb296..8af476c881 100644 --- a/iphone/Maps/Classes/MapViewController.mm +++ b/iphone/Maps/Classes/MapViewController.mm @@ -400,13 +400,14 @@ NSInteger compareAddress(id l, id r, void * context) int tapCount = theTouch.tapCount; int touchesCount = [[event allTouches] count]; + Framework & f = GetFramework(); if (touchesCount == 1) { // Cancel long-touch timer [NSObject cancelPreviousPerformRequestsWithTarget:self]; if (tapCount == 1) { - if (GetFramework().GetGuiController()->OnTapEnded(m_Pt1)) + if (f.GetGuiController()->OnTapEnded(m_Pt1)) return; // Launch single tap timer @@ -414,11 +415,11 @@ NSInteger compareAddress(id l, id r, void * context) [self performSelector:@selector(onSingleTap:) withObject:[NSValue valueWithCGPoint:[theTouch locationInView:self.view]] afterDelay:0.3]; } else if (tapCount == 2 && m_isSticking) - GetFramework().ScaleToPoint(ScaleToPointEvent(m_Pt1.x, m_Pt1.y, 2.0)); + f.ScaleToPoint(ScaleToPointEvent(m_Pt1.x, m_Pt1.y, 2.0)); } if (touchesCount == 2 && tapCount == 1 && m_isSticking) - GetFramework().Scale(0.5); + f.Scale(0.5); [self updateDataAfterScreenChanged]; }