From 0a1b9819c742ef121ae5ff02cbe37e82aa865553 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Soutad=C3=A9?= Date: Sat, 6 Jan 2018 19:42:24 +0100 Subject: [PATCH] Set default month to december for year != cur year (avoid new year bug) --- src/view/AccountPanel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/view/AccountPanel.cpp b/src/view/AccountPanel.cpp index e7d56d1..b6e07e2 100644 --- a/src/view/AccountPanel.cpp +++ b/src/view/AccountPanel.cpp @@ -357,7 +357,7 @@ void AccountPanel::LoadYear(int year, bool showMonth) if (_curYear == curDate.year()) month = curDate.month()-1; else - month = 0; + month = 11; for (it = ops[year].begin(); it != ops[year].end(); it++) {