summaryrefslogtreecommitdiffstats
path: root/kghostview
diff options
context:
space:
mode:
Diffstat (limited to 'kghostview')
-rw-r--r--kghostview/kgvdocument.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/kghostview/kgvdocument.cpp b/kghostview/kgvdocument.cpp
index c08b68f1..8a1a6776 100644
--- a/kghostview/kgvdocument.cpp
+++ b/kghostview/kgvdocument.cpp
@@ -17,6 +17,7 @@
*/
#include <algorithm>
+#include <functional>
#include <memory>
#include <tqfileinfo.h>
@@ -618,7 +619,7 @@ bool KGVDocument::savePages( const TQString& saveFileName,
PageList normedPageList;
transform( pageList.begin(), pageList.end(),
back_inserter( normedPageList ),
- bind2nd( minus<int>(), minPage - 1 ) );
+ bind( minus<int>(), std::placeholders::_1, minPage - 1 ) );
// Finally select the desired pages from the converted file.
psCopyDoc( psSaveFile.name(), saveFileName, normedPageList );