Libraries: a swatch row held across File › Revert is not added to a library

The Libraries panel accepted a swatch row dragged before File › Revert and added the restored swatch of that name. Membership::grabbed now refuses stale rows, for the hover marker and on release.
This commit is contained in:
dotCooCoo committed 2026-11-28 21:05:01 -08:00
1 parent 3381168a7e
commit 5f99cb7ebb
3 files changed
+47 -1

No files matched your search

+2 -1
View File
@@ -6956,7 +6956,8 @@ the panel shows) is meant.
takes them), `fillColor` / `strokeColor` (the first selected object's solid colour, else the default one, or `color`),
`charStyle` / `paraStyle` (the selected text's attributes). The new item goes into `group` (by default into none) and,
with `before` or `after` (another item of its kind), just before or after that item, as `library.moveItem` places one;
art and swatches dropped among the panel's items are added this way. An item the library already has is reported as
art and swatches dropped among the panel's items are added this way (a swatch dragged before File › Revert of its
drawing is not added). An item the library already has is reported as
`existing`, and stays where it is. `library.use {library?, kind, item,
center?, to?}` uses one: a graphic is placed centred on `center` (pasted with its resources; a swatch name the document
gives another colour merges into the document's), a colour paints the selection's fill or stroke, and a style is added