dunnart
dunnart copied to clipboard
bug fix in dangling connections
void GraphData::connectorToEdge(Connector* conn) {
QPair<CPoint, CPoint> connpts = conn->get_connpts();
if(!connpts.first.shape||!connpts.second.shape) {
qWarning("dangling connector!");
return;
}
conn_vec.push_back(conn); // this line should be here, not at the beginning
// otherwise there's a discrepancy between conn_vec and edges in case of dangling conectors