Ticket #3836: logscale.patch

File logscale.patch, 452 bytes (added by myth@…, 12 years ago)

possible fix for crash

  • mainvisual.cpp

     
    967967    alpha = x;
    968968    for (i = 1; i < (int) domain; i++) {
    969969        scaled = (int) floor(0.5 + (alpha * log((double(i) + alpha) / alpha)));
     970        if (scaled < 1)
     971            scaled = 1;
    970972        if (indices[scaled - 1] < i)
    971973            indices[scaled - 1] = i;
    972974    }