mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-27 11:37:59 -06:00
In Edit text & images, a paragraph's width handle is drawn centred on its box's edge, and the edge grabs from up to 6 px outside the box. Object selection sees a press first, though, and handed it to the paragraph tool only on the box itself. A press on the outer half of the handle started an area selection instead: its rectangle followed the pointer like a resized frame, and on release the paragraph kept its old width and the text never moved. Object selection now also leaves a press on a closed paragraph's edge grip to the paragraph tool, through edit_text_ui::grabs_edge. That uses the same edge test, box and upright-page rule as the tool itself, so the two can't drift apart. The rewrap is the existing EditTextBlock with a width, so undo, redo and save are unchanged. Fixes #2276