Skip to content

Feature top cover yjx - #503

Merged
iesteem merged 3 commits into
Snapmaker:feature_top_coverfrom
iesteem:feature_top_cover_yjx
Jun 17, 2026
Merged

Feature top cover yjx#503
iesteem merged 3 commits into
Snapmaker:feature_top_coverfrom
iesteem:feature_top_cover_yjx

Conversation

@iesteem

@iesteem iesteem commented Jun 17, 2026

Copy link
Copy Markdown

Description

iesteem and others added 3 commits June 17, 2026 12:23
extruders_count config option has type coInt, so the underlying boost::any
stores an int. Casting it as size_t directly throws boost::bad_any_cast,
which wxWidgets reports as "Unhandled unknown exception; terminating the
application." Use the safe pattern already established at line 4688:
cast to int first, then convert to size_t.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Replace size_t(...) with static_cast<size_t>(...) to comply with coding
standard that prohibits C-style casts. Also fix the same issue in the
existing code at line 4688.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…ation file

Two root causes for "Unhandled unknown exception" at startup:

1. Plater.cpp referenced three config options that were never defined in
   PrintConfig.cpp: enable_infill_filament_override,
   infill_filament_use_base_first_layers, infill_filament_use_base_last_layers.
   This caused "Unknown option exception" during on_init_inner() when the
   config system looked up these keys.

2. zh_CN .po file had a duplicate block of 5 msgid/msgstr entries inserted
   during the main merge, plus a malformed line with two msgstr strings
   concatenated. msgfmt reported 8 fatal errors.

Also fixes boost::any_cast<size_t> → static_cast<size_t>(boost::any_cast<int>)
in Tab.cpp to match the safe pattern at line 4688 (coInt options store int).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@iesteem
iesteem merged commit 993b1fe into Snapmaker:feature_top_cover Jun 17, 2026
1 check failed
@iesteem
iesteem deleted the feature_top_cover_yjx branch June 24, 2026 03:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant