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:
authorrachytski <siarhei.rachytski@gmail.com>2013-01-25 21:00:40 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:49:22 +0300
commit9ef29ad3d046e982be99c71d026748932e80632d (patch)
treebf7d502e3aef22dbf45a7b6ea006e999cdd41295 /graphics/path.hpp
parent2bf7adf129911da7d2f6a41aca07ecefd006743b (diff)
Ruler code cleanup and changes according to code review.
Diffstat (limited to 'graphics/path.hpp')
-rw-r--r--graphics/path.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/graphics/path.hpp b/graphics/path.hpp
index ba8a239e56..14824f8d34 100644
--- a/graphics/path.hpp
+++ b/graphics/path.hpp
@@ -21,6 +21,7 @@ namespace graphics
void lineRel(m2::Point<T> const & pt)
{
+ ASSERT(!m_pts.empty(), ());
m2::Point<T> const & p = m_pts.back();
m_pts.push_back(p + pt);
}