ui.dialog.confirm refuses an action whose button the open tab does not show. The ui.paramDialog params text (crates/mcp/src/ui_catalog.rs and crates/ui-egui/src/menus/ui_commands.rs) and docs/mcp.md now say so.
The document's pathItems.removeAll() skipped text whose characters are
all whitespace before laying it out, so a numbered paragraph holding a
single space did not count, although its number clips. The deletion was
then refused while the mask would still clip.
- Whitespace-only text is laid out like other text.
- Text is laid out only inside a mask that loses a path, so documents
with text outside such masks do no layout for the check.
- A test covers a mask left with only a list number.
- docs/mcp.md says blank text without a list marker does not count.
The Recolor Artwork entry now says that with a Global Adjust other than
0%, the row's swatch pick does not create a link, and art already linked
to that swatch stays linked.
The document's pathItems.removeAll() counted any visible text object as
geometry that keeps a clipping mask clipping. Blank type and area type too
short for its first line lay out no glyphs, so the clip renderer clips by
nothing for them; deleting the mask's last path then hid the clipped art.
- Text counts only when it is visible and its layout gives glyph outlines.
- A clipping group nested in the mask counts only its first member.
- Hidden objects and members of hidden groups do not count.
- Tests cover blank, overset, hidden and nested-clipped type, and type
with glyphs that still allows the delete.
- docs/mcp.md states the rule.
The Recolor Artwork entry now says that without Limit to Library, a
Global Adjust other than 0% gives the row's art the adjusted color and
does not link it to the swatch picked for the row.
A group that clips by a mask holding a path and a text object keeps
clipping by the text's outlines after the path is deleted, so
Document.pathItems.removeAll() no longer refuses that case. Hidden
text and hidden subgroups do not clip, so a mask left with only those
still refuses. docs/mcp.md describes the rule.
bake_adjust gave every row the Global Adjust and, with no library
limit, removed every row's picked swatch and tint, excluded rows
included. An excluded row recolors no art, so it now keeps its new
color, swatch and tint, and the other rows still take the adjustment.
textFrames.removeAll() and the removeAll() of a group's pageItems,
groupItems and compoundPathItems checked only clip groups whose mask
they release. Deleting the type or art below an image in an ordinary
group named Image Trace left the image first, so the group was read as
a tracing and the image dropped out of pageItems. Both now throw
"Only Image Trace can make a tracing" and delete nothing, checking the
whole set being deleted at once.
- object.rasterize and Document.rasterize refuse clipBounds that reach
none of the selected objects' own bounds, including a rectangle in the
gap between two of them, instead of replacing the art with a
background-only image.
- imageCapture checks its destination again on every write the export
makes and as the file is committed, so a destination that becomes a
link to an open document or a linked file while the art renders is
refused.
- imageCapture refuses a destination whose real path is not valid UTF-8
instead of writing under a name with its bytes replaced.
- A missing linked file's name in the other Unicode normalization form
counts as the linked file in folders that ignore the form (macOS, and
casefolded folders on Linux).
- The hard-link tests skip on volumes without hard links.
- docs/mcp.md: imageCapture rounds clip dimensions to the nearest pixel;
rasterize rounds fractional dimensions up.
Document.pathItems.removeAll() deleted every path of the document even when
one was the clipping path of a group or layer that keeps other objects, so
the next object became the clipping path. The scoped collections already
refuse this. The document's collection now runs the same check before
anything is deleted, and also refuses when it would empty a compound path or
group that clips other objects. edit.clear removes an emptied compound path
and keeps an emptied group, and the check follows it.
The fault came with #9041, which added Document.pathItems.
- The pump applies a Color Picker answer only while the row is the one the
picker answered; a row that ui.dialog.set changed in between takes neither
the color nor the swatch, and the status line says the rows changed.
- An excluded row offers no Tint slider, since recolor.apply skips its art;
the row keeps its tint.
- A row picked from a group swatch that groupColors removes (null) offers no
Tint slider; its chip keeps the tinted color, which the art takes unlinked.
- docs/mcp.md and the recolor.apply params say a null swatch is no swatch.
remove(), the document's pageItems.removeAll() and textFrames.removeAll()
release the mask of a clip group whose clipping path they delete. A clip
group named Image Trace with an image next above its clipping path then
became an ordinary group named as a tracing with an image first, which
reads as a tracing. They now throw "Only Image Trace can make a tracing"
and delete nothing in that case.
docs/mcp.md names the removeAll() collections that release a mask and
the ones that refuse to delete a clipping path instead.
- object.rasterize with ids refuses objects whose nearest clip group or
clipped layer differs, before rendering: the image goes where the last
object is, so mixed sources would be clipped by another object's path.
- Document.rasterize reads the image id from the command's result inside
the run's savepoint, so an id above 2^53 binds the new RasterItem and a
missing id undoes the edit.
- Document.imageCapture refuses a destination that is another name of an
open document's file or a linked file (same device and inode, or same
volume and file index), and on Unix any file with other hard links,
which an in-place write would change under every name.
- Docs: gaps.md and target-app-parity.md list what rasterizing and
capturing still lack; mcp.md states the clipping rule, the hard-link
rule and that a later OS write failure can leave some files written.
- Layer.zOrderPosition reads the sibling list through the cached layer
lists, so reading it for every layer of a loop lists the layers once.
Each read is still charged for the search through the list.
- TextFrames.removeAll releases the mask of a group or layer whose
clipping path is one of the type objects it deletes, as
PageItems.removeAll and remove() do, so the object above the type is
not made the clipping path.
- GroupItems.createFromFile checks that its collection is still there
first, so a collection whose group was deleted throws "Stale page item"
instead of the not-available message. docs/mcp.md says so.
Assigning `clipped = true` to a GroupItem checked only that the group and
its layer were editable, so a hidden or locked topmost object lost its fill
and stroke and became the clipping path. The setter now refuses that object
before running the command, with no undo step. The setter came from #9048.
A file.new step replayed from a journal or the Actions panel rounded
artboardLayout.rows and then refused a result over 1000, so a step with
rows 1000.5 or 5000 stopped the playback. The rows count now follows the
columns rule: it is rounded, must be 1 or more, and is kept to at most
1000. Recent stores the kept count. docs/mcp.md says the same.