dunnart icon indicating copy to clipboard operation
dunnart copied to clipboard

bug fix in dangling connections

Open uasolo opened this issue 9 years ago • 0 comments

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

uasolo avatar Jul 15 '15 16:07 uasolo