Uploaded image for project: 'Jalview'
  1. Jalview
  2. JAL-2570

existing SequenceGroup loses colourscheme when resized in splitframe

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.10.2
    • Component/s: None
    • Labels:

      Description


      When in a splitframe, with no colours applied except to a single group on CDS, resizing the group causes it to lose its colourscheme.

      ~gmungoc] cause is the SequenceGroup copy constructor (https://source.jalview.org/crucible/browse/~br=develop/jalview/src/jalview/datamodel/SequenceGroup.java?hb=true#to181 ). Resizing triggers MappingUtils.mapSequenceGroup - which has this code:

      SequenceGroup mappedGroup = new SequenceGroup(sg);
          mappedGroup.setColourScheme(mapTo.getGlobalColourScheme());
          mappedGroup.clear();

      since the new and old group inherit the same shader, both groups' are affected, and the original group get's the alignment background colour.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              gmungoc Mungo Carstairs
              Reporter:
              jprocter Jim Procter
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: