mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-27 16:59:43 +01:00
`ui.dialog.set` replaced a Save PDF settings object (`bleed`, `marks`,
`compression` and the others) with the value given. Options left out then
showed the default settings in the dialog, while Save PDF took them from
the chosen preset. With the bleed, the link copied the default top value
to the other sides while the file kept the preset's top: from a preset
with `[3, 5, 3, 3]`, `{"useDocument": false}` followed by linking wrote
`[3, 0, 0, 0]`.
- A settings object set there now sets only the options it holds; the
ones it leaves out keep the dialog's values. A null option is still
set as given.
- A value that is not an object is refused, and the request leaves the
dialog as it was.
- A test sends a request that sets `bleed` and then an invalid
`__bleedLinked` through the control handler and checks the dialog is
unchanged.