fix(canvas): convert relinked image src to ImageSrc
The relink-image handler assigned a String to ImageNode.src, which is now ImageSrc after the Arc-share change (ee0a933e) — this conversion was applied in the working tree but missed from that commit, leaving op-host-desktop compile-broken at the committed state. Add the .into().
This commit is contained in:
parent
e2ca2f03de
commit
d37e85960b
|
|
@ -165,7 +165,7 @@ pub fn handle_relink_image(host: &mut WidgetHostNative, current_path: Option<&Pa
|
|||
if let Some(jian_ops_schema::node::PenNode::Image(image)) =
|
||||
op_editor_core::walkers::find_node_mut(state.active_children_mut(), &id)
|
||||
{
|
||||
image.src = stored;
|
||||
image.src = stored.into();
|
||||
}
|
||||
// Drop the stale asset check so the warning row clears on the
|
||||
// next pump (it re-probes the new src).
|
||||
|
|
|
|||
Loading…
Reference in a new issue