rem: if (net->cirseg->angle1 < 0)
add: if (net->cirseg->angle1 < 0) {
context: calc_cirseg_mq(struct gerb_net *net, int cw, 	       double delta_cp_x, double delta_cp_y){    double d1x, d1y, d2x, d2y;    double alfa, beta;    net->cirseg->cp_x = net->start_x + delta_cp_x;    net->cirseg->cp_y = net->start_y + delta_cp_y;    /*     * Some good values      */    d1x = net->start_x - net->cirseg->cp_x;    d1y = net->start_y - net->cirseg->cp_y;    d2x = net->stop_x - net->cirseg->cp_x;    d2y = net->stop_y - net->cirseg->cp_y;        alfa = atan2(d1y, d1x);    beta = atan2(d2y, d2x);#define ABS(a) (a>0.0?a:-a)#define MAX(a,b) (a>b?a:b)    net->cirseg->width = MAX(ABS(delta_cp_x), ABS(delta_cp_y)) * 2.0;    net->cirseg->height = MAX(ABS(delta_cp_x), ABS(delta_cp_y)) * 2.0 ;    net->cirseg->angle1 = RAD2DEG(alfa);    net->cirseg->angle2 = RAD2DEG(beta);    /*     * Make sure it's always positive angles     */    if (net->cirseg->angle1 < 0) 	net->cirseg->angle1 = 360 + net->cirseg->angle1;    if (net->cirseg->angle2 < 0) 	net->cirseg->angle2 = 360 + net->cirseg->angle2;    if(net->cirseg->angle2 == 0)	net->cirseg->angle2 = 360;    return;} /* calc_cirseg_mq */