r23502 by jghali - Fix Qt deprecation warning
scribus-commit
scribus-commit at lists.scribus.net
Tue Mar 10 16:12:42 UTC 2020
Author: jghali
Date: Tue Mar 10 16:12:42 2020
New Revision: 23502
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23502
Log:
Fix Qt deprecation warning
Modified:
trunk/Scribus/scribus/ui/tablesideselector.cpp
Modified: trunk/Scribus/scribus/ui/tablesideselector.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23502&path=/trunk/Scribus/scribus/ui/tablesideselector.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/tablesideselector.cpp (original)
+++ trunk/Scribus/scribus/ui/tablesideselector.cpp Tue Mar 10 16:12:42 2020
@@ -6,6 +6,7 @@
a copyright and/or license notice that predates the release of Scribus 1.3.2
for which a new license (GPL+exception) is in place.
*/
+#include <algorithm>
#include <QColor>
#include <QDebug>
@@ -125,7 +126,7 @@
distances.append(QPair<double, Side>(QLineF(point, m_right.pointAt(0.5)).length(), Right));
distances.append(QPair<double, Side>(QLineF(point, m_top.pointAt(0.5)).length(), Top));
distances.append(QPair<double, Side>(QLineF(point, m_bottom.pointAt(0.5)).length(), Bottom));
- qSort(distances);
+ std::sort(distances.begin(), distances.end());
return distances.first().second;
}
More information about the scribus-commit
mailing list