Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLev Dragunov <l.dragunov@corp.mail.ru>2015-08-28 15:24:23 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 03:03:25 +0300
commitc331c05746b98ae816d3a86b5e03c4062cb4e97a (patch)
tree7c7eabe48bbd6cd532650c0b5edadb1a8a2faed6 /routing/router_delegate.hpp
parent8baa945cfdb94b6295a52792443e7ae5b51803dc (diff)
[routing] Cross mwm cancellation crash fix.
Diffstat (limited to 'routing/router_delegate.hpp')
-rw-r--r--routing/router_delegate.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/routing/router_delegate.hpp b/routing/router_delegate.hpp
index f2373c816e..42c892ad95 100644
--- a/routing/router_delegate.hpp
+++ b/routing/router_delegate.hpp
@@ -35,8 +35,8 @@ public:
RouterDelegate();
/// Set routing progress. Waits current progress status from 0 to 100.
- void OnProgress(float progress) const { m_progressCallback(progress); }
- void OnPointCheck(m2::PointD const & point) const { m_pointCallback(point); }
+ void OnProgress(float progress) const { if (!IsCancelled()) m_progressCallback(progress); }
+ void OnPointCheck(m2::PointD const & point) const { if (!IsCancelled()) m_pointCallback(point); }
void SetProgressCallback(TProgressCallback const & progressCallback);
void SetPointCheckCallback(TPointCheckCallback const & pointCallback);