We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d495fb2 commit c6feb42Copy full SHA for c6feb42
src/rectangleguillotine/solution.cpp
@@ -276,10 +276,14 @@ void Solution::append(
276
bin.copies = copies;
277
bin.first_cut_orientation = bin_old.first_cut_orientation;
278
for (SolutionNode node: bin_old.nodes) {
279
- if (node.item_type_id >= 0)
+ if (node.t == -4) {
280
+ } else if (node.f == -1) {
281
+ node.item_type_id = bin_type_id;
282
+ } else if (node.item_type_id >= 0) {
283
node.item_type_id = (item_type_ids.empty())?
284
node.item_type_id:
285
item_type_ids[node.item_type_id];
286
+ }
287
bin.nodes.push_back(node);
288
}
289
bins_.push_back(bin);
0 commit comments