--- a/graphicscomposition/openwfcompositionengine/composition/src/wfccontext.c Tue Feb 02 01:47:50 2010 +0200
+++ b/graphicscomposition/openwfcompositionengine/composition/src/wfccontext.c Fri Apr 16 16:21:04 2010 +0300
@@ -279,8 +279,9 @@
OWF_ASSERT(attribError==ATTR_ERROR_NO_MEMORY);
return attribError;
}
-
- /* The composition code uses the member variables directly,
+
+
+ /* The composition code reads the member variables directly,
* not via the attribute engine.
*/
OWF_Attribute_Initi(&context->attributes,
@@ -313,6 +314,14 @@
(OWFint*) &context->lowestElement,
OWF_TRUE);
attribError=OWF_AttributeList_GetError(&context->attributes);
+
+ /* After commit to working, writable attribute abstracted variables
+ must not be written to directly. */
+ OWF_AttributeList_Commit(&context->attributes,
+ WFC_CONTEXT_TYPE,
+ WFC_CONTEXT_BG_COLOR,
+ WORKING_ATTR_VALUE_INDEX );
+
return attribError;
}