From 123fc13123d38460f6c01d637521bf53009dd791 Mon Sep 17 00:00:00 2001 From: Vojtech Bubnik Date: Wed, 12 Jan 2022 11:46:31 +0100 Subject: [PATCH] Fixing perl tests. --- src/libslic3r/GCode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libslic3r/GCode.cpp b/src/libslic3r/GCode.cpp index 27e47d5ea..a91f15b2a 100644 --- a/src/libslic3r/GCode.cpp +++ b/src/libslic3r/GCode.cpp @@ -1043,7 +1043,7 @@ namespace DoExport { filament_stats_string_out += "\n" + out_filament_used_g.first; if (out_filament_cost.second) filament_stats_string_out += "\n" + out_filament_cost.first; - print_statistics.initial_filament_type = config.filament_type.values[initial_extruder_id]; + print_statistics.initial_filament_type = config.filament_type.get_at(initial_extruder_id); std::sort(filament_types.begin(), filament_types.end()); print_statistics.printing_filament_types = filament_types.front(); for (size_t i = 1; i < filament_types.size(); ++ i) {