Opened 13 years ago

Closed 13 years ago

#3202 closed bug (fixed)

Interchanges of colors in Random ramp

Reported by: dr Owned by: wonder
Priority: major: does not work as expected Milestone: Version 1.7.0
Component: Symbology Version: Trunk
Keywords: Cc: dr, gislab, alexbruy
Must Fix for Release: No Platform: All
Platform Version: Awaiting user input: no

Description

  1. Settings - Style manager - Color ramp;
  2. Add couple of new Random ramps;
  3. Set one of the ramp which was created on previous step and press minus button (delete);
  4. Without selecting another ramps try press minus button again - colors in the second random ramps interchanges.

Change History (4)

comment:1 by wonder, 13 years ago

Well, the random color ramp is indeed random - it doesn't store the generated values, so every time it is created it is filled with new random values from the specified range. That's why it may seem that the colors are interchanged.

comment:2 by dr, 13 years ago

Ok, but why this happens with press _Remove item_ button? I guess that this button need be blocked if no one ramps selected.

comment:3 by wonder, 13 years ago

Because the list is loaded again when you add/edit/remove anything. I agree that it should reload only when the style gets modified - done in r14604.

comment:4 by alexbruy, 13 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.