housekeeping

This commit is contained in:
scawful
2024-05-24 19:53:06 -04:00
parent 58a5febf8e
commit 4b4fe33dc6
4 changed files with 9 additions and 6 deletions

View File

@@ -148,6 +148,11 @@ class Canvas {
}
auto mutable_labels(int i) {
if (i >= labels_.size()) {
int x = i;
while (x >= labels_.size()) {
labels_.push_back(ImVector<std::string>());
x--;
}
labels_.push_back(ImVector<std::string>());
}
return &labels_[i];