#179 QwtDyngridLayout: twice assigned "d_data->maxCols" variable

closed
nobody
None
5
2012-11-09
2012-11-05
Maks
No

qwt_dyngrid_layout: (362 line):
Twice assigned "d_data->maxCols" variable.
////
const int maxCols = d_data->maxCols;
d_data->maxCols = numCols;
const QRect alignedRect = alignmentRect( rect );
d_data->maxCols = maxCols;
////

Discussion

  • Uwe Rathmann

    Uwe Rathmann - 2012-11-09

    d_data->maxCols is temporarily set to numCols ( to have an effect for alignmentRect() ) and is then reset to its initial value. Code looks o.k. to me.

     
  • Uwe Rathmann

    Uwe Rathmann - 2012-11-09
    • status: open --> closed-rejected
     


Anonymous

Cancel  Add attachments