Ticket #36919: patch-grid25dbase.C.diff
File patch-grid25dbase.C.diff, 594 bytes (added by lpsinger (Leo Singer), 12 years ago) |
---|
-
saotk/util/grid25dbase.C
old new 26 26 int Grid25dBase::gLine(int n, float* x, float* y) 27 27 { 28 28 Frame3dBase* pp = (Frame3dBase*)parent_; 29 Vector vv[n];30 29 float xx[n]; 31 30 float yy[n]; 32 31 33 32 for (int ii=0; ii<n; ii++) { 34 vv[ii]= pp->mapFromRef(Vector(x[ii],y[ii]),Coord::WIDGET);35 xx[ii] = vv[ ii][0];36 yy[ii] = vv[ ii][1];33 Vector vv = pp->mapFromRef(Vector(x[ii],y[ii]),Coord::WIDGET); 34 xx[ii] = vv[0]; 35 yy[ii] = vv[1]; 37 36 } 38 37 39 38 switch (renderMode_) {