aboutsummaryrefslogtreecommitdiff
path: root/src/Text.cpp
diff options
context:
space:
mode:
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()