[Igarden-commit] Garden/source/Document CDatabasePanel.cp, 1.104.2.1, 1.104.2.2
Status: Beta
Brought to you by:
jlbedell
|
From: Jeffrey B. <jlb...@us...> - 2007-01-09 02:44:49
|
Update of /cvsroot/igarden/Garden/source/Document In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv24579 Modified Files: Tag: Release_branch_v1 CDatabasePanel.cp Log Message: Fix defect where items from more than one plot don't show up in the list view Index: CDatabasePanel.cp =================================================================== RCS file: /cvsroot/igarden/Garden/source/Document/CDatabasePanel.cp,v retrieving revision 1.104.2.1 retrieving revision 1.104.2.2 diff -C2 -d -r1.104.2.1 -r1.104.2.2 *** CDatabasePanel.cp 8 Jan 2007 13:56:28 -0000 1.104.2.1 --- CDatabasePanel.cp 9 Jan 2007 02:44:44 -0000 1.104.2.2 *************** *** 349,353 **** PRECONDITION(prefs != NULL); prefs->AddReceiver(this); ! long n, count; OneColumnSet *newSet; _allowTableRebuild = false; --- 349,353 ---- PRECONDITION(prefs != NULL); prefs->AddReceiver(this); ! long n, count, i, numLayers; OneColumnSet *newSet; _allowTableRebuild = false; *************** *** 399,413 **** thePlot = theLayout->GetIndexedPlot(n); DoNewPlot(0, thePlot); // Treat as if plot is new - } ! count = theLayout->GetNumLayers(); ! for(n = 0; n < count; n++) ! { ! theLayer = theLayout->GetIndexedLayer(n); ! theLayer->AddReceiver(this); ! DoNewLayer(0, theLayer); // Treat as if layer is new } - //********* sortNameLen = state->GetStrPrefLength(kSortState); --- 399,412 ---- thePlot = theLayout->GetIndexedPlot(n); DoNewPlot(0, thePlot); // Treat as if plot is new ! numLayers = thePlot->GetNumLayers(); ! for(i = 0; i < numLayers; i++) ! { ! theLayer = thePlot->GetIndexedLayer(i); ! theLayer->AddReceiver(this); ! DoNewLayer(0, theLayer); // Treat as if layer is new ! } } //********* sortNameLen = state->GetStrPrefLength(kSortState); |