mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-23 06:33:57 -06:00
FIX: crash when multi-select connectors with different shape
Jira: 3916 Change-Id: Ic011827e5d301f91f684039a85b228196be1ba98
This commit is contained in:
parent
9a193fbfea
commit
4f48c48ad2
1 changed files with 2 additions and 1 deletions
|
@ -1710,7 +1710,8 @@ bool GLGizmoAdvancedCut::render_combo(const std::string &label, const std::vecto
|
|||
|
||||
size_t selection_out = selection_idx;
|
||||
|
||||
if (ImGui::BBLBeginCombo(("##" + label).c_str(), lines[selection_idx].c_str(), 0)) {
|
||||
const char* selected_str = (selection_idx >= 0 && selection_idx < int(lines.size())) ? lines[selection_idx].c_str() : "";
|
||||
if (ImGui::BBLBeginCombo(("##" + label).c_str(), selected_str, 0)) {
|
||||
for (size_t line_idx = 0; line_idx < lines.size(); ++line_idx) {
|
||||
ImGui::PushID(int(line_idx));
|
||||
if (ImGui::Selectable("", line_idx == selection_idx))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue