Fix images and text again (#752)

* Images and text now work again

* Fix crash on load images
This commit is contained in:
0HyperCube
2022-08-18 13:40:34 +01:00
committed by Keavon Chambers
parent 4025815515
commit 8effd6ecca
4 changed files with 19 additions and 14 deletions
+3
View File
@@ -422,6 +422,9 @@ impl Document {
}
if LayerDataTypeDiscriminant::from(&root.data) == data_type {
root.cache_dirty = true;
if let LayerDataType::Text(text) = &mut root.data {
text.cached_path = None;
}
}
root.cache_dirty