Bug from own testing (yeah, writing logs means finding bugs!)

The Curve widget flag 'premultiply' should be cleared on read. This could
lead to an occasional crash...
This commit is contained in:
2006-07-05 20:30:44 +00:00
parent 64d0d62ddd
commit 2ca81ba8cc

View File

@@ -1189,6 +1189,9 @@ static void direct_link_curvemapping(FileData *fd, CurveMapping *cumap)
{
int a;
/* flag seems to be able to hang? Maybe old files... not bad to clear anyway */
cumap->flag &= ~CUMA_PREMULLED;
for(a=0; a<CM_TOT; a++) {
cumap->cm[a].curve= newdataadr(fd, cumap->cm[a].curve);
cumap->cm[a].table= NULL;