summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormanzerbredes <loic.guegan_secondary@yahoo.fr>2015-05-01 10:39:26 +0200
committermanzerbredes <loic.guegan_secondary@yahoo.fr>2015-05-01 10:39:26 +0200
commit6392288967fa76515c6789d5b99b91d76472caf4 (patch)
treef50ffba937c3fe0eccbfce2411f2d47019a2fbf0
parenta7e0de4bb60cd262579a3fd28ec0a11d769d9722 (diff)
Modify show() method presentation
-rw-r--r--src/Model/Grid.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Model/Grid.cpp b/src/Model/Grid.cpp
index 19e8f4d..e484fc3 100644
--- a/src/Model/Grid.cpp
+++ b/src/Model/Grid.cpp
@@ -42,7 +42,9 @@ void Grid::show()
std::cout << " " << m_table[i][j]->description() << " |";
}
std::cout << std::endl;
- std::cout << std::endl;
+
+ if (i != m_size -1)
+ std::cout << std::endl;
}
std::cout << "_________________" << std::endl;
}