Commit 0c6035ea authored by Claes Sjofors's avatar Claes Sjofors

Ge AnalogColor bugfix for Inherit color

parent 5848569c
...@@ -5399,6 +5399,12 @@ int GeAnalogColor::connect( grow_tObject object, glow_sTraceData *trace_data) ...@@ -5399,6 +5399,12 @@ int GeAnalogColor::connect( grow_tObject object, glow_sTraceData *trace_data)
bool found = false; bool found = false;
GeDynElem *elem; GeDynElem *elem;
color = dyn->get_color1( object, color);
if ( color < 0 || color >= glow_eDrawType__) {
printf( "** Color out of range, %s\n", attribute);
return 0;
}
// Get attribute for instance 1 // Get attribute for instance 1
if ( instance == ge_mInstance_1) if ( instance == ge_mInstance_1)
e = this; e = this;
......
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