--- a/src/editmodes/selectMode.cpp Sun Aug 30 05:30:17 2015 +0300 +++ b/src/editmodes/selectMode.cpp Sun Aug 30 15:01:10 2015 +0300 @@ -76,10 +76,10 @@ } else { - int const x = Min (m_rangeStart.x(), mx); - int const y = Min (m_rangeStart.y(), my); - int const width = Abs (m_rangeStart.x() - mx); - int const height = Abs (m_rangeStart.y() - my); + int const x = qMin (m_rangeStart.x(), mx); + int const y = qMin (m_rangeStart.y(), my); + int const width = qAbs (m_rangeStart.x() - mx); + int const height = qAbs (m_rangeStart.y() - my); area = QRect (x, y, width, height); }