From 4ca6b527b7228c2c7591b65a889142b5ac1ef5b5 Mon Sep 17 00:00:00 2001 From: djcb Date: Mon, 30 Oct 2017 21:14:20 +0200 Subject: [PATCH] mu: use correct conversion for size This changed with the new parser. --- lib/mu-msg-doc.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/mu-msg-doc.cc b/lib/mu-msg-doc.cc index ad57b80b..3cd780d7 100644 --- a/lib/mu-msg-doc.cc +++ b/lib/mu-msg-doc.cc @@ -110,7 +110,8 @@ mu_msg_doc_get_num_field (MuMsgDoc *self, MuMsgFieldId mfid) const std::string s (self->doc().get_value(mfid)); if (s.empty()) return 0; - else if (mfid == MU_MSG_FIELD_ID_DATE) + else if (mfid == MU_MSG_FIELD_ID_DATE || + mfid == MU_MSG_FIELD_ID_SIZE) return strtol (s.c_str(), NULL, 10); else { return static_cast