1.1 --- a/vymmodel.cpp Mon Mar 16 15:40:49 2009 +0000
1.2 +++ b/vymmodel.cpp Thu Mar 19 11:48:33 2009 +0000
1.3 @@ -123,7 +123,6 @@
1.4
1.5 MapCenterObj *VymModel::getMapCenterNum (int i)
1.6 {
1.7 - cout << "MCO i="<<i<<" count="<<mapCenters.count()<<endl;
1.8 if (i>mapCenters.count()-1 || i<0)
1.9 return NULL;
1.10 else
1.11 @@ -135,6 +134,18 @@
1.12 return mapCenters.count();
1.13 }
1.14
1.15 +int VymModel::countBranches()
1.16 +{
1.17 + uint b=0;
1.18 + BranchObj *bo=first();
1.19 + while (bo)
1.20 + {
1.21 + b++;
1.22 + bo=next(bo);
1.23 + }
1.24 + return b;
1.25 +}
1.26 +
1.27 BranchObj* VymModel::first()
1.28 {
1.29 if (mapCenters.count()>0)