aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2010-12-27 20:55:08 +0000
committerPav Lucistnik <pav@FreeBSD.org>2010-12-27 20:55:08 +0000
commit60dfc9c453e121e71a94373e5329544d788422b5 (patch)
tree20ed6c2badec1b87478f0766efeb8344a7624bee /graphics
parent7466c9b14fc51c13b224614c09d7080fdd2e96e1 (diff)
Notes
Diffstat (limited to 'graphics')
-rw-r--r--graphics/scantailor/files/patch-ProjectFilesDialog.cpp30
1 files changed, 30 insertions, 0 deletions
diff --git a/graphics/scantailor/files/patch-ProjectFilesDialog.cpp b/graphics/scantailor/files/patch-ProjectFilesDialog.cpp
new file mode 100644
index 000000000000..d14e625aa5f8
--- /dev/null
+++ b/graphics/scantailor/files/patch-ProjectFilesDialog.cpp
@@ -0,0 +1,30 @@
+--- ProjectFilesDialog.cpp.orig 2010-04-03 23:47:33.000000000 +0400
++++ ProjectFilesDialog.cpp 2010-12-10 20:05:23.000000000 +0300
+@@ -677,6 +677,17 @@
+ endRemoveRows();
+ }
+
++namespace {
++ struct less_for_first_members_of_pairs
++ {
++ template <typename Pair>
++ bool operator()(Pair const& left, Pair const& right) const
++ {
++ return left.first < right.first;
++ }
++ };
++}
++
+ void
+ ProjectFilesDialog::FileList::remove(QItemSelection const& selection)
+ {
+@@ -699,7 +710,8 @@
+ );
+ std::sort(
+ sorted_ranges.begin(), sorted_ranges.end(),
+- bind(&Range::first, _1) < bind(&Range::first, _2)
++ // bind(&Range::first, _1) < bind(&Range::first, _2)
++ less_for_first_members_of_pairs()
+ );
+
+ QVectorIterator<Range> it(sorted_ranges);