aboutsummaryrefslogtreecommitdiff
path: root/src/Text.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-10-22 21:56:33 +0200
committerdec05eba <dec05eba@protonmail.com>2020-10-22 21:56:33 +0200
commit97564d40636aafb251644f61a0b990e392afd7a4 (patch)
treed6cb19849445d4d2683024072f1966c7bb17c619 /src/Text.cpp
parent42ef59ef17cb0a56c6ac1d8f220db7ca461c5411 (diff)
Matrix: add pinned messages tab
Diffstat (limited to 'src/Text.cpp')
-rw-r--r--src/Text.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Text.cpp b/src/Text.cpp
index 44730c3..51ff054 100644
--- a/src/Text.cpp
+++ b/src/Text.cpp
@@ -161,6 +161,10 @@ namespace QuickMedia
{
this->editable = editable;
dirtyCaret = true;
+ if(editable)
+ dirty = true;
+ else
+ vertices_linear.clear();
}
}
@@ -466,7 +470,8 @@ namespace QuickMedia
}
boundingBox.height = num_lines * line_height;
- // TODO: Clear vertices_linear when not in edit mode, but take into consideration switching between edit/not-edit mode
+ if(!editable)
+ vertices_linear.clear();
}
void Text::updateCaret()