Selection: fix canonicalize

This commit is contained in:
Maxime Coste 2011-09-22 13:59:07 +00:00
parent 948443a077
commit 3012f69c4d

View File

@ -28,7 +28,7 @@ struct Selection
void canonicalize() void canonicalize()
{ {
if (m_end < m_begin) if (m_end < m_begin)
std::swap(m_begin, m_end); std::swap(++m_begin, ++m_end);
} }
void offset(int offset) void offset(int offset)