diff options
author | rachytski <siarhei.rachytski@gmail.com> | 2013-01-25 21:00:40 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:49:22 +0300 |
commit | 9ef29ad3d046e982be99c71d026748932e80632d (patch) | |
tree | bf7d502e3aef22dbf45a7b6ea006e999cdd41295 /graphics/path.hpp | |
parent | 2bf7adf129911da7d2f6a41aca07ecefd006743b (diff) |
Ruler code cleanup and changes according to code review.
Diffstat (limited to 'graphics/path.hpp')
-rw-r--r-- | graphics/path.hpp | 1 |
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); } |