From f0e0aba4f3321cd4458a5b87a3da6a0562280718 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Soutad=C3=A9?= Date: Tue, 27 Jan 2015 18:50:55 +0100 Subject: [PATCH] Fix a bug : Forgot +1 when creating tags list in GridAccount --- src/view/grid/GridAccount.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/view/grid/GridAccount.cpp b/src/view/grid/GridAccount.cpp index 1234eba..2ae804a 100644 --- a/src/view/grid/GridAccount.cpp +++ b/src/view/grid/GridAccount.cpp @@ -120,7 +120,7 @@ GridAccount::GridAccount(KissCount* kiss, QWidget *parent, _categories[i] = _(categoryIt->name.toStdString().c_str()) ; } - _tags = new QString[user->GetTagsNumber()] ; + _tags = new QString[user->GetTagsNumber()+1] ; _tags[0] = _("No Tag"); for(i=1, tagIt = user->_tags.begin(); tagIt != user->_tags.end();