0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-11 13:09:18 +00:00
termux-packages/x11-packages/inkscape/src-object-object-set.cpp.patch
2022-09-24 01:28:54 +09:00

20 lines
578 B
Diff

--- a/src/object/object-set.cpp
+++ b/src/object/object-set.cpp
@@ -12,6 +12,7 @@
#include "object-set.h"
+#include <boost/algorithm/minmax_element.hpp>
#include <boost/range/adaptor/filtered.hpp>
#include <boost/range/adaptor/transformed.hpp>
#include <glib.h>
@@ -263,7 +264,7 @@
auto const& n = nodes;
#endif
- return *std::max_element(n.begin(), n.end(), sp_repr_compare_position_bool);
+ return *boost::first_max_element(n.begin(), n.end(), sp_repr_compare_position_bool);
}
void ObjectSet::set(SPObject *object, bool persist_selection_context) {