mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
FIX: crash in new wiper tower
jira: none Change-Id: I3d9b59b15ab93da201e07670155af28b7596081c (cherry picked from commit 620b6053d8f51ce5bb1c68c84f2087e995840684)
This commit is contained in:
@@ -2650,8 +2650,8 @@ int WipeTower::get_wall_filament_for_all_layer()
|
||||
}
|
||||
|
||||
//std::vector<std::pair<int, int>> category_counts_vec;
|
||||
int selected_category = category_counts.begin()->first;
|
||||
int selected_count = category_counts.begin()->second;
|
||||
int selected_category = -1;
|
||||
int selected_count = 0;
|
||||
|
||||
for (auto iter = category_counts.begin(); iter != category_counts.end(); ++iter) {
|
||||
if (iter->second > selected_count) {
|
||||
|
||||
Reference in New Issue
Block a user