diff --git a/ChangeLog b/ChangeLog index 5b5a5cf0a..350997fe7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -65,6 +65,8 @@ Bugs + #1300 Encode/decode pairing is now properly balanced. + #1305 Commit hash now available in tarball builds (thanks to Ben Boeckel). + Fixed bug so that 'limit:page' now considers footnote messages. + + Fixed bug where specifying an ID of 0 yielded all completed/deleted tasks + (thanks to greenskeleton). ------ old releases ------------------------------ diff --git a/src/A3.cpp b/src/A3.cpp index cbe397f80..7ce537bc7 100644 --- a/src/A3.cpp +++ b/src/A3.cpp @@ -1141,6 +1141,9 @@ const A3 A3::sequence (const A3& input) const if (ids.size () == 0 && uuids.size () == 0) return input; + if (ids.size () == 1 && ids[0] < 1) + throw format (STRING_A3_ZERO_ID, ids[0]); + // Copy everything up to the first id/uuid. for (arg = input.begin (); arg != input.end (); ++arg) { diff --git a/src/en-US.h b/src/en-US.h index bb3d1be11..3d57dc396 100644 --- a/src/en-US.h +++ b/src/en-US.h @@ -116,6 +116,7 @@ #define STRING_A3_ID_AFTER_HYPHEN "Unrecognized ID after hyphen." #define STRING_A3_RANGE_INVERTED "Inverted range 'high-low' instead of 'low-high'" #define STRING_A3_UUID_AFTER_COMMA "Unrecognized UUID after comma." +#define STRING_A3_ZERO_ID "'{1}' is not a valid ID." // Color #define STRING_COLOR_UNRECOGNIZED "The color '{1}' is not recognized." diff --git a/src/es-ES.h b/src/es-ES.h index ad0cb1bfd..ad6e95356 100644 --- a/src/es-ES.h +++ b/src/es-ES.h @@ -117,6 +117,7 @@ #define STRING_A3_ID_AFTER_HYPHEN "ID no reconocido tras guión." #define STRING_A3_RANGE_INVERTED "Rango invertido 'alto-bajo' en vez de 'bajo-alto'" #define STRING_A3_UUID_AFTER_COMMA "UUID no reconocido tras coma." +#define STRING_A3_ZERO_ID "'{1}' is not a valid ID." // Color #define STRING_COLOR_UNRECOGNIZED "El color '{1}' no se reconoce." diff --git a/src/fr-FR.h b/src/fr-FR.h index 50afd3379..eb54f90ce 100644 --- a/src/fr-FR.h +++ b/src/fr-FR.h @@ -116,6 +116,7 @@ #define STRING_A3_ID_AFTER_HYPHEN "Unrecognized ID after hyphen." #define STRING_A3_RANGE_INVERTED "Inverted range 'high-low' instead of 'low-high'" #define STRING_A3_UUID_AFTER_COMMA "Unrecognized UUID after comma." +#define STRING_A3_ZERO_ID "'{1}' is not a valid ID." // Color #define STRING_COLOR_UNRECOGNIZED "The color '{1}' is not recognized." diff --git a/src/it-IT.h b/src/it-IT.h index 7d6c0d2cb..2e595396d 100644 --- a/src/it-IT.h +++ b/src/it-IT.h @@ -117,6 +117,7 @@ #define STRING_A3_ID_AFTER_HYPHEN "ID non riconosciuto dopo il trattino." #define STRING_A3_RANGE_INVERTED "Intervallo invertito 'alto-basso' invece di 'basso-alto'" #define STRING_A3_UUID_AFTER_COMMA "UUID non riconosciuto dopo la virgola." +#define STRING_A3_ZERO_ID "'{1}' is not a valid ID." // Color #define STRING_COLOR_UNRECOGNIZED "Il colore '{1}' non è riconosciuto."