diff --git a/crates/engine/src/cmd/objects.rs b/crates/engine/src/cmd/objects.rs index 3610bff5df..8b5c2e7989 100644 --- a/crates/engine/src/cmd/objects.rs +++ b/crates/engine/src/cmd/objects.rs @@ -29,7 +29,7 @@ pub use picture::{OriginalSize, PictureLook, cropped_original_size, fit_size, or use picture::{clear_background, grown, picture_style}; #[cfg(test)] pub(crate) use select::all_objects; -pub(super) use select::select_object; +pub(crate) use select::select_object; pub(crate) use select::{edit_obj, has_shape_or_canvas}; #[cfg(test)] use select::{has_group, holds_ink, obj_size, with_obj}; diff --git a/crates/engine/src/cmd/objects/select.rs b/crates/engine/src/cmd/objects/select.rs index 93442941a7..9404804964 100644 --- a/crates/engine/src/cmd/objects/select.rs +++ b/crates/engine/src/cmd/objects/select.rs @@ -176,7 +176,7 @@ pub fn min_size(o: &InlineObject) -> f32 { } /// Select the object whose character is at `pos`. -pub(super) fn select_object(s: &mut Session, pos: &Pos) { +pub(crate) fn select_object(s: &mut Session, pos: &Pos) { s.sel = Selection { anchor: pos.clone(), focus: Pos { off: pos.off + wordcraft_doc::para::OBJ.len_utf8(), ..pos.clone() } }; }