fix(field): bound the Field dialog's automation indices; ASCII browse button

#1585's field_dialog action stored any index it was given, and the dialog
indexes its category, case, size, named-type, formula, precision and plot
scale lists with them, so an out-of-range value panicked while drawing.
They are checked against the list lengths now. The hyperlink browse
button drew a glyph (…) that is tofu without the font, and two of the
new local_header_dates calls were mis-indented.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Hakan SevenandClaude Opus 5.5 committed 2026-10-02 14:17:48 +03:00
1 parent 0de1e91f99
commit a21aef2a11
3 files changed
+20 -12

No files matched your search

+1 -1
View File
@@ -519,7 +519,7 @@ fn format_panel<'a>(state: &'a FieldDialogState) -> Element<'a, Message> {
.font(iced::Font::MONOSPACE)
.style(field_style)
.on_input(|v| msg(FieldDialogMsg::HyperlinkUrl(v))),
button(text("…").size(12))
button(text("...").size(12))
.on_press(msg(FieldDialogMsg::BrowseHyperlink))
.style(button_style(false))
.padding([5, 10]),