Ticket #2740 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

Cutline with blend don't blend correctly for some pixel rows

Reported by: asgerpetersen Owned by: warmerdam
Priority: normal Milestone: 1.6.1
Component: Algorithms Version: 1.6.0
Severity: normal Keywords: cutline blending
Cc:

Description

I think

    int iY, iX;
    double dfLastDist = 0;
    
    for( iY = 0; iY < nYSize; iY++ )
    {
        for( iX = 0; iX < nXSize; iX++ )

should be

    int iY, iX;
    double dfLastDist;
    
    for( iY = 0; iY < nYSize; iY++ )
    {
        dfLastDist = 0;
        for( iX = 0; iX < nXSize; iX++ )

To reset the distance shortcut when processing a new row. Otherwise odd blending results occur.

Change History

Changed 3 years ago by warmerdam

  • keywords cutline blending added
  • status changed from new to closed
  • resolution set to fixed
  • milestone set to 1.6.1

Agreed ... corrected in trunk (r15956) and 1.6 branch (r15957).

Note: See TracTickets for help on using tickets.