aboutsummaryrefslogtreecommitdiff
path: root/include/Body.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/Body.hpp')
-rw-r--r--include/Body.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/Body.hpp b/include/Body.hpp
index 35928cb..b90f64a 100644
--- a/include/Body.hpp
+++ b/include/Body.hpp
@@ -12,14 +12,14 @@ namespace QuickMedia {
class BodyItem {
public:
- BodyItem(std::string _title): visible(true), num_lines(0) {
+ BodyItem(std::string _title): visible(true), num_lines(1) {
set_title(std::move(_title));
}
void set_title(std::string new_title) {
title = std::move(new_title);
// TODO: Optimize this
- num_lines = 0;
+ num_lines = 1;
for(char c : title) {
if(c == '\n')
++num_lines;