Commit a753db72 authored by Claes Sjofors's avatar Claes Sjofors

Ge bugfix in color out of range error

parent 2194095f
......@@ -2213,6 +2213,7 @@ int GeDigLowColor::connect( grow_tObject object, glow_sTraceData *trace_data)
color = dyn->get_color1( object, color);
if ( color < 0 || color >= glow_eDrawType__) {
printf( "** Color out of range, %s\n", attribute);
p = 0;
return 0;
}
......@@ -2498,6 +2499,7 @@ int GeDigColor::connect( grow_tObject object, glow_sTraceData *trace_data)
color = dyn->get_color2( object, color);
if ( color < 0 || color >= glow_eDrawType__) {
printf( "** Color out of range, %s\n", attribute);
p = 0;
return 0;
}
......@@ -3057,6 +3059,7 @@ int GeDigFlash::connect( grow_tObject object, glow_sTraceData *trace_data)
color = dyn->get_color1( object, color);
if ( color < 0 || color >= glow_eDrawType__) {
printf( "** Color out of range, %s\n", attribute);
p = 0;
return 0;
}
......@@ -3506,6 +3509,7 @@ int GeDigTextColor::connect( grow_tObject object, glow_sTraceData *trace_data)
color = dyn->get_color1( object, color);
if ( color < 0 || color >= glow_eDrawType__) {
printf( "** Color out of range, %s\n", attribute);
p = 0;
return 0;
}
......@@ -3658,6 +3662,7 @@ int GeDigBorder::connect( grow_tObject object, glow_sTraceData *trace_data)
color = dyn->get_color1( object, color);
if ( color < 0 || color >= glow_eDrawType__) {
printf( "** Color out of range, %s\n", attribute);
p = 0;
return 0;
}
......@@ -7248,6 +7253,7 @@ int GeDigBackgroundColor::connect( grow_tObject object, glow_sTraceData *trace_d
color = dyn->get_color2( object, color);
if ( color < 0 || color >= glow_eDrawType__) {
printf( "** Color out of range, %s\n", attribute);
p = 0;
return 0;
}
......@@ -10666,6 +10672,7 @@ int GeStatusColor::connect( grow_tObject object, glow_sTraceData *trace_data)
nostatus_color = dyn->get_color1( object, nostatus_color);
if ( nostatus_color < 0 || nostatus_color >= glow_eDrawType__) {
printf( "** Color out of range, %s\n", attribute);
p = 0;
return 0;
}
......@@ -12318,6 +12325,7 @@ int GeFillLevel::connect( grow_tObject object, glow_sTraceData *trace_data)
color = dyn->get_color2( object, color);
if ( color < 0 || color >= glow_eDrawType__) {
printf( "** Color out of range, %s\n", attribute);
p = 0;
return 0;
}
......
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