mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
fix(type): adapt the corrupt-size mask test to the engine's doc accessor
The merged main no longer lets a caller assign through DocState: it takes no DerefMut, and the test helper wrote st.doc directly, so the ui-egui lib test target failed to build (E0594) and the CI archive step with it. Write through doc_mut(), the way main's own type_tool canvas test does.
This commit is contained in:
1 parent
a4c0bb9a68
commit
ce776f0cb9
1 file changed
+1
-1
@@ -282,7 +282,7 @@ fn corrupt_layer_size(app: &mut PhotocraftApp, id: LayerId, bad: f32) {
|
||||
r.style.size_pt = bad;
|
||||
}
|
||||
}
|
||||
st.doc = std::sync::Arc::new(doc);
|
||||
*st.doc_mut() = std::sync::Arc::new(doc);
|
||||
st.revision += 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user