Permalink
Browse files

Do not attempt to plot control polygons for uninitialized curves

  • Loading branch information...
swesonga committed Sep 18, 2011
1 parent 61eeebe commit b1645794cff8bc023e2e5798d9811b2fbca1678c
Showing with 2 additions and 1 deletion.
  1. +2 −1 cplot/cplot.cpp
View
@@ -110,8 +110,9 @@ int main(int argc, char *argv[]){
fscanf(in, "%d", &nCurve);
if(!curves[nCurve]){
printf("ERROR: Cannot Plot Curve %d's Polygon. Curve has not been initialized\n", nCurve);
} else {
plotControlPolygon(curves[nCurve]);
}
plotControlPolygon(curves[nCurve]);
}
// Exit the program; close files.
else if (!strcmp(line, "exit")){

0 comments on commit b164579

Please sign in to comment.