summaryrefslogtreecommitdiff
path: root/src/db/DatabasePrint.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/db/DatabasePrint.cxx')
-rw-r--r--src/db/DatabasePrint.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/db/DatabasePrint.cxx b/src/db/DatabasePrint.cxx
index 39b645660..024573713 100644
--- a/src/db/DatabasePrint.cxx
+++ b/src/db/DatabasePrint.cxx
@@ -173,11 +173,11 @@ db_selection_print(Response &r, Partition &partition,
if (window_start > 0 ||
window_end < (unsigned)std::numeric_limits<int>::max())
- s = [s, window_start, window_end, &i](const LightSong &song,
- Error &error2){
+ s = [s, window_start, window_end, &i](const LightSong &song){
const bool in_window = i >= window_start && i < window_end;
++i;
- return !in_window || s(song, error2);
+ if (in_window)
+ s(song);
};
return db.Visit(selection, d, s, p, error);