[Igarden-commit] Garden/source/Reports PurchaseReport.cpp, 1.1.2.6, 1.1.2.7
Status: Beta
Brought to you by:
jlbedell
|
From: Jeffrey B. <jlb...@us...> - 2007-01-09 02:48:12
|
Update of /cvsroot/igarden/Garden/source/Reports In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv26123 Modified Files: Tag: Release_branch_v1 PurchaseReport.cpp Log Message: Fix displaying of items from multiple plots in purchase report. Make sure that all plant pictures are loaded. Index: PurchaseReport.cpp =================================================================== RCS file: /cvsroot/igarden/Garden/source/Reports/Attic/PurchaseReport.cpp,v retrieving revision 1.1.2.6 retrieving revision 1.1.2.7 diff -C2 -d -r1.1.2.6 -r1.1.2.7 *** PurchaseReport.cpp 28 Dec 2006 00:45:28 -0000 1.1.2.6 --- PurchaseReport.cpp 9 Jan 2007 02:48:10 -0000 1.1.2.7 *************** *** 125,129 **** { XGPopControl *pop; ! long count, n, numLayers; XGUUID nilID; XGCheckButton *check; --- 125,129 ---- { XGPopControl *pop; ! long count, n, numLayers, i; XGUUID nilID; XGCheckButton *check; *************** *** 194,200 **** numLayers = plot->GetNumLayers(); ! for(n = 0; n < numLayers; n++) { ! layer = plot->GetIndexedLayer(n); if(_AllPlots) layer->AddToPathELementArray(&_list, nilID); --- 194,200 ---- numLayers = plot->GetNumLayers(); ! for(i = 0; i < numLayers; i++) { ! layer = plot->GetIndexedLayer(i); if(_AllPlots) layer->AddToPathELementArray(&_list, nilID); *************** *** 738,742 **** /****/ ExtractTag(fileData, "Picture", str); ! templ.hasBorder = (CIstrcmp(str.c_str(), "true") == 0); /****/ ExtractTag(fileData, "Height", str); --- 738,742 ---- /****/ ExtractTag(fileData, "Picture", str); ! templ.hasPicture = (CIstrcmp(str.c_str(), "true") == 0); /****/ ExtractTag(fileData, "Height", str); |