src/editmodes/selectMode.cpp

changeset 966
a834e43a57da
parent 962
a4b463a7ee82
child 968
4b93b7963456
--- 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);
 			}
 

mercurial