Layer › Duplicate Layer… opened a window titled "Duplicate Layer…"
("Duplicate Layers…" for several layers, "Duplicate Group…" on a
group). The titles now read without the ellipsis, as #15541 did for
Stroke and New Group; the shared title test covers the three cases.
Leaving the Crop tool commits a drawn frame through CropTool::leave, but the
host only turned the view upright for a discard. A default-mode crop that
turned the view left it turned at the crop's angle after the commit. The
host now turns that document's view upright after the commit leaving the
tool makes, accepted or refused, as Enter's does. Classic Mode never turns
the view and is unchanged.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The merged main no longer lets a caller assign through DocState: it takes no
DerefMut, and the test helper wrote st.doc directly, so the ui-egui lib test
target failed to build (E0594) and the CI archive step with it. Write through
doc_mut(), the way main's own type_tool canvas test does.
The 4x/0.7 transform puts the glyph band right of x = 189 and above
y = 120, so the click this file's other cases use (60, 300) already
misses the layer's glyphs (a Type Mask click ON glyphs edits that
layer, #12075) and starts a fresh mask. Re-verified red at the
unfixed defaults and green at the fixed one.
The inherited size is the first run's point size times the layer's
transform scale, and that product is finite yet out of range very
plausibly: an 800 pt layer under a 2x transform shows 1600 pt, past
the engine's 1296 pt maximum (TYPE_SIZE_MAX_PT), and a corrupt
document can carry a 0 pt run, below the 0.1 pt minimum. A refused
size fails type.create as a whole, so the mask click made no mask at
all - worse than the tool's own size, which is always valid.
Gate the key through the engine's own check_size_tracking, the same
single source the options-bar defaults filter uses: an out-of-range or
non-finite shown size stays out of the parameters (the tool's size
applies), while font and style still move over as measured.
The too-large test case moves to a 4x/0.7 transform: at 2x the 800 pt
glyphs cover the old click point, and a Type Mask click ON a text
layer edits it instead (#12075) - the new click at (700, 550) sits
below the glyph band and starts a fresh mask, which is the case under
test.
Answering review thread 4639743127.
An 800 pt text layer under a 2x transform shows 1600 pt, above the
engine's accepted 0.1-1296 pt range, and a corrupt document can carry a
0 pt run below the minimum. mask_style_from_active_layer gates on
finiteness only, so the refused size reaches type.create and the whole
click makes no mask at all: the new test fails at the session opening.
Answering review thread 4639743127.