Commit 04c4fa6f authored by Claes Sjofors's avatar Claes Sjofors

Merge branch 'master' of x0-0-0/pwr

parents 9d1b9fba df8b39a4
......@@ -5404,6 +5404,12 @@ int GeAnalogColor::connect( grow_tObject object, glow_sTraceData *trace_data)
bool found = false;
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
if ( instance == ge_mInstance_1)
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