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  
    2626int Grid25dBase::gLine(int n, float* x, float* y)
    2727{
    2828  Frame3dBase* pp = (Frame3dBase*)parent_;
    29   Vector vv[n];
    3029  float xx[n];
    3130  float yy[n];
    3231
    3332  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];
    3736  }
    3837
    3938  switch (renderMode_) {