summaryrefslogtreecommitdiff
path: root/src/db/DatabasePrint.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-09-02 07:57:08 +0200
committerMax Kellermann <max@musicpd.org>2018-09-02 08:17:22 +0200
commit2915d2dd0f80aed4db1e362e3688a044fc5ce919 (patch)
tree541491a4715cf6d907ea3c048da25aca56f4e962 /src/db/DatabasePrint.cxx
parent590687fdea671c964445585b67209bacf5cfe876 (diff)
protocol/RangeArg: add IsAll()
Diffstat (limited to 'src/db/DatabasePrint.cxx')
-rw-r--r--src/db/DatabasePrint.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/db/DatabasePrint.cxx b/src/db/DatabasePrint.cxx
index b830c3d25..dd981bfc4 100644
--- a/src/db/DatabasePrint.cxx
+++ b/src/db/DatabasePrint.cxx
@@ -200,8 +200,7 @@ db_selection_print(Response &r, Partition &partition,
: VisitPlaylist();
if (sort == TAG_NUM_OF_ITEM_TYPES) {
- if (window.start > 0 ||
- window.end < (unsigned)std::numeric_limits<int>::max())
+ if (!window.IsAll())
s = [s, window, &i](const LightSong &song){
const bool in_window = i >= window.start && i < window.end;
++i;