Commit 60fe3c9d authored by Claes Sjofors's avatar Claes Sjofors

Ge PopupMenu dynamic fix for object graph with referenced object

parent 0ac70028
...@@ -16115,18 +16115,16 @@ int GePopupMenu::action(grow_tObject object, glow_tEvent event) ...@@ -16115,18 +16115,16 @@ int GePopupMenu::action(grow_tObject object, glow_tEvent event)
int x, y; int x, y;
int reference = 0; int reference = 0;
if (ref_object[0] == '&') { dyn->parse_attr_name(
ref_object, parsed_name, &inverted, &attr_type, &attr_size);
if (parsed_name[0] == '&') {
// Refobject starting with '&' indicates reference // Refobject starting with '&' indicates reference
pwr_tAName refname; pwr_tAName refname;
dyn->parse_attr_name( strncpy(refname, parsed_name, sizeof(refname));
ref_object, refname, &inverted, &attr_type, &attr_size);
sts = dyn->graph->get_reference_name(refname, parsed_name); sts = dyn->graph->get_reference_name(refname, parsed_name);
if (EVEN(sts)) if (EVEN(sts))
break; break;
// reference = 1;
} else { } else {
dyn->parse_attr_name(
ref_object, parsed_name, &inverted, &attr_type, &attr_size);
if (inverted) // Old syntax for reference if (inverted) // Old syntax for reference
reference = 1; reference = 1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment