From 27f3e95f12cd37168ddf12be6a563c8cde17fb49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Reh=C3=A1k?= Date: Sat, 7 May 2022 04:37:50 +0100 Subject: [PATCH] ColTypeDate: Fix countdown style width --- src/columns/ColTypeDate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/columns/ColTypeDate.cpp b/src/columns/ColTypeDate.cpp index 2fb283ef3..310606c29 100644 --- a/src/columns/ColTypeDate.cpp +++ b/src/columns/ColTypeDate.cpp @@ -89,7 +89,7 @@ void ColumnTypeDate::measure (Task& task, unsigned int& minimum, unsigned int& m else if (_style == "countdown") { Datetime now; - minimum = maximum = Duration (now - date).formatVague (true).length (); + minimum = maximum = Duration (date - now).formatVague (true).length (); } else if (_style == "julian") {