From 466833a35a402347b7e2180ab265146eb0a3a59d Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Wed, 30 Jan 2019 10:43:49 +0100 Subject: Fix FIB2 component labels --- src/fig2.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/fig2.cpp') diff --git a/src/fig2.cpp b/src/fig2.cpp index 74243ce..97622c8 100644 --- a/src/fig2.cpp +++ b/src/fig2.cpp @@ -185,10 +185,12 @@ fig_result_t fig2_select(fig2_common_t& fig2, const display_settings_t &disp) try { auto& service = fig2.ensemble.get_service(sid); - handle_ext_label_data_field(fig2, service.label, disp, r); + auto& comp = service.get_component_by_scids(SCIdS); - const auto complete_label = service.label.assemble(); - r.msgs.push_back(strprintf("Label segments=\"%s\"", service.label.assembly_state().c_str())); + handle_ext_label_data_field(fig2, comp.label, disp, r); + + const auto complete_label = comp.label.assemble(); + r.msgs.push_back(strprintf("Label segments=\"%s\"", comp.label.assembly_state().c_str())); if (not complete_label.empty()) { r.msgs.push_back(strprintf("Label=\"%s\"", complete_label.c_str())); } -- cgit v1.2.3