[Igarden-commit] Garden/source/PlanTool ActiveMaterial.cpp, 1.45.2.8, 1.45.2.9
Status: Beta
Brought to you by:
jlbedell
|
From: Jeffrey B. <jlb...@us...> - 2006-12-29 15:47:37
|
Update of /cvsroot/igarden/Garden/source/PlanTool In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv12822 Modified Files: Tag: Release_branch_v1 ActiveMaterial.cpp Log Message: Make sure that the popup matches any change made by PickMaterial() Index: ActiveMaterial.cpp =================================================================== RCS file: /cvsroot/igarden/Garden/source/PlanTool/ActiveMaterial.cpp,v retrieving revision 1.45.2.8 retrieving revision 1.45.2.9 diff -C2 -d -r1.45.2.8 -r1.45.2.9 *** ActiveMaterial.cpp 19 Dec 2006 12:51:22 -0000 1.45.2.8 --- ActiveMaterial.cpp 29 Dec 2006 15:47:35 -0000 1.45.2.9 *************** *** 367,370 **** --- 367,374 ---- PRECONDITION(index < GetNumMaterials()); _currentItem = index; + + if(_popup->GetValue() != index) + _popup->SetValue(index); + material = GetIndexedMaterial(_currentItem); if(material != NULL) |