From c523ddea35e3ac38386c0daaa83397073ef5f6ae Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sun, 5 Jan 2014 14:58:41 +0100 Subject: [PATCH] Fix option names not showing in plater object settings --- xs/xsp/Config.xsp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xs/xsp/Config.xsp b/xs/xsp/Config.xsp index 79d9bd269..461f1cd89 100644 --- a/xs/xsp/Config.xsp +++ b/xs/xsp/Config.xsp @@ -147,7 +147,8 @@ print_config_def() } (void)hv_stores( hv, "type", newSVpv(opt_type, 0) ); (void)hv_stores( hv, "label", newSVpvn(optdef->label.c_str(), optdef->label.length()) ); - (void)hv_stores( hv, "full_label", newSVpvn(optdef->full_label.c_str(), optdef->full_label.length()) ); + if (!optdef->full_label.empty()) + (void)hv_stores( hv, "full_label", newSVpvn(optdef->full_label.c_str(), optdef->full_label.length()) ); (void)hv_stores( hv, "category", newSVpvn(optdef->category.c_str(), optdef->category.length()) ); (void)hv_stores( hv, "tooltip", newSVpvn(optdef->tooltip.c_str(), optdef->tooltip.length()) ); (void)hv_stores( hv, "sidetext", newSVpvn(optdef->sidetext.c_str(), optdef->sidetext.length()) );