aboutsummaryrefslogtreecommitdiffstats
path: root/src/fig2.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-01-30 10:43:49 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-01-30 10:43:49 +0100
commit466833a35a402347b7e2180ab265146eb0a3a59d (patch)
tree08e9c71325e8b8774d73cdc49b55206c15254f44 /src/fig2.cpp
parentc515439594bf939e3f712856257a5a086b57616a (diff)
downloadetisnoop-466833a35a402347b7e2180ab265146eb0a3a59d.tar.gz
etisnoop-466833a35a402347b7e2180ab265146eb0a3a59d.tar.bz2
etisnoop-466833a35a402347b7e2180ab265146eb0a3a59d.zip
Fix FIB2 component labels
Diffstat (limited to 'src/fig2.cpp')
-rw-r--r--src/fig2.cpp8
1 files changed, 5 insertions, 3 deletions
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()));
}