* Fix selected comment quick-bar color (#1191) * M5: skip quick-bar recolour when commenting is forbidden (#1191) The quick-bar colour swatch now checks allows_annotation() before restyling the selected comment, matching the canvas and context-menu gating. Without it, a restricted document showed a "Change comment properties failed" toast on every swatch pick; the engine already rejected the edit. Adds a regression test on an encrypted, print-only fixture that fails without the guard. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01T3DWkcKZcZLbww1oeDbCfb * M5: quick-bar colour also recolours a selected arrow (#1191) Arrows are saved as Line annotations with an ending, so tool_for() reports them as the Line tool and the Arrow tool's swatch never matched the selected arrow. comments::made_by() treats the Line and Arrow tools as the same kind. Adds a regression test that fails without the fix. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01T3DWkcKZcZLbww1oeDbCfb --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| examples | ||
| src | ||
| tests | ||
| Cargo.toml | ||
| build.rs | ||