* fix: mark duplicate images unsaved with their own history state
* test: use engine save API for duplicate close regression
* test: install commands for duplicate history cases
* test: keep duplicate history fixture core-only
Review round one: a hardness-50 dab pins that Replace at partial coverage composites the
source through the coverage (strictly between ground and source at the rim, exact copy at the
centre); the bit-exact loop widens to the full-coverage disc of the 20 px hard tip, measured at
221 pixels (pixel-centre distance under 9 of the 10 px radius); and the options bar dropdown
route is now click-tested end to end: open Mode, pick Replace, the stroke would send
mode:"replace" and no History step is added, pick Multiply and Replace is left.
Settings saved before the checkbox (#14243) held one number, with 1 meaning off. Any number up to 1
loaded as the box off with 1.45, so a hand-edited 0.5 was silently replaced and not reported. Only
exactly 1 is the off sentinel now; a smaller number is reported as an invalid preference and loads
as 1.45 with the box on, as an out-of-range value in the new format does.
Both measured menus, options bar dropdown and Shift+right-click, now list
Normal, Replace, a rule, Multiply, Screen, Darken, Lighten, a rule, Color,
Luminosity. Replace is a Healing Brush tool option, like the painting tools'
Clear flags: picking it runs no command and adds no History step, and the
stroke params carry mode:"replace" to the engine commit this branch adds. The
seven blend modes, their keyboard letters, the step cycle and Reset Tool keep
their meanings; the new option resets with the Healing Brush.
The Healing Brush's Replace row, measured in the reference application: the
stroke copies the source pixels with no healing solve, composited through
Normal. `blend_param` accepts the exact word "replace" for `paint.healingBrush`
alone, so the live stroke parser starts too (its texture preview already draws
what Replace commits); every other command keeps refusing it, and an unknown
mode string stays an error. `healing_brush` reads the word from the params and
paints the sampled source region as it stands: the Normal and other modes run
the unchanged solve path, pinned pixel-for-pixel by the tests.
Red: `paint.healingBrush {"mode":"replace"}` is refused today ("unknown blend
mode `replace`"). The new file pins what the ticket measures: every pixel the
hard tip covers fully equals the source pixel mapped there, bit for bit, taken
from the document state before the stroke; Normal's healed pixels are pinned
byte for byte; an unknown mode string stays an error; and one Replace stroke
is one History step named "Healing Brush".
Zoom, fit, print size and rotate counted as command runs, so each ran every
panel body in the next frame. The regions that show the view hold it in their
versions already; while an action is recorded a view command still counts,
since the Actions panel lists the step.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The UI builds and frees many small values every frame, and the system heap's
alloc and free were about 14 % of the UI thread. Windows only: Linux keeps
glibc, tuned by malloc_tuning to return closed documents' memory (#8743).
mimalloc and libmimalloc-sys are MIT.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Healing Brush's alert is for a hidden or locked pixel layer. A hidden group, like a shown
one, is the no-source case (#12109) and keeps today's messages. Adds a real-canvas test that an
Alt-click on a hidden or locked layer still sets the clone source.
A Healing Brush press on a hidden target layer or a layer with Lock All only said why in
the status bar. The reference application opens a modal alert with OK and paints nothing.
Adds the Healing Brush to brush_refusal's tool_name table. A group keeps its own message
(#12109), Lock Image Pixels and Lock position keep today's behaviour, and an Alt-click
still only sets the clone source.