addXLabel (lp, objp, xlp, 1, edgeMidpoint(gp, ep));
xlp++;
}
+ else {
+ agerr(AGWARN, "no position for edge with label %s",
+ ED_label(ep)->text);
+ continue;
+ }
objp++;
}
if ((lp = ED_tail_label(ep))) {
addXLabel (lp, objp, xlp, 1, edgeTailpoint(ep));
xlp++;
}
+ else {
+ agerr(AGWARN, "no position for edge with tail label %s",
+ ED_tail_label(ep)->text);
+ continue;
+ }
objp++;
}
if ((lp = ED_head_label(ep))) {
addXLabel (lp, objp, xlp, 1, edgeHeadpoint(ep));
xlp++;
}
+ else {
+ agerr(AGWARN, "no position for edge with head label %s",
+ ED_head_label(ep)->text);
+ continue;
+ }
objp++;
}
if ((lp = ED_xlabel(ep))) {
addXLabel (lp, objp, xlp, 1, edgeMidpoint(gp, ep));
xlp++;
}
+ else {
+ agerr(AGWARN, "no position for edge with xlabel %s",
+ ED_xlabel(ep)->text);
+ continue;
+ }
objp++;
}
}