From: <sv...@ww...> - 2006-12-20 17:22:40
|
Author: nsmoooose Date: 2006-12-20 09:22:32 -0800 (Wed, 20 Dec 2006) New Revision: 2042 Modified: trunk/csp/cspsim/wf/Serialization.cpp Log: Fix for a compilation error with g++ contributed by Mythos_Greece. Browse at: https://www.zerobar.net/viewcvs/viewcvs.cgi?view=rev&rev=2042 Modified: trunk/csp/cspsim/wf/Serialization.cpp =================================================================== --- trunk/csp/cspsim/wf/Serialization.cpp 2006-12-19 08:22:31 UTC (rev 2041) +++ trunk/csp/cspsim/wf/Serialization.cpp 2006-12-20 17:22:32 UTC (rev 2042) @@ -354,7 +354,8 @@ for(int cellIndex=0;cellIndex < cellNodeCount;++cellIndex) { XMLNode cellNode = rowNode.getChildNode(cellIndex); if(cellNode.nChildNode() > 0) { - Ref<Control> cellControl = createControl(theme, cellNode.getChildNode(0)); + XMLNode controlNode = cellNode.getChildNode(0); + Ref<Control> cellControl = createControl(theme, controlNode); (*dst)[cellIndex][rowIndex] = cellControl; } |