diff --git a/src/cell.cpp b/src/cell.cpp --- a/src/cell.cpp +++ b/src/cell.cpp @@ -415,6 +415,7 @@ void Cell::DivideWalls(ItList new_node_l daughter->chem[i]=chem[i]; } + daughter->cell_type = cell_type; //extern double auxin_account; //auxin_account += daughter->chem[0]; @@ -1093,7 +1094,7 @@ void Cell::DivideWalls(ItList new_node_l ConstructNeighborList(); daughter->ConstructNeighborList(); - m->plugin->OnDivide(parent_info,*daughter, *this); + m->plugin->OnDivide(&parent_info, daughter, this); // wall->OnWallInsert(); //daughter->OnDivide(); @@ -1660,7 +1661,7 @@ void Cell::Draw(QGraphicsScene *c, QStri QColor cell_color; - m->plugin->SetCellColor(*this,cell_color); + m->plugin->SetCellColor(this,&cell_color); p->setPolygon(pa); p->setPen(par.outlinewidth>=0?QPen( QColor(par.cell_outline_color),par.outlinewidth):QPen(Qt::NoPen));