Changes between Version 1 and Version 2 of Ticket #15709, comment 48


Ignore:
Timestamp:
2018-01-02T00:56:36+01:00 (6 years ago)
Author:
cmuelle8

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #15709, comment 48

    v1 v2  
    77Before r13191 {{{img}}} was not reassigned, {{{ImageDisplay.this.image = rot;}}} was used right away in this code block.
    88
    9 I changed this to achieve more atomicity in the rotating case, and to use a single assignment to {{{ImageDisplay.this.image}}} only, but overlooked that the MediaTracker would cling on to a ref, if it did not receive a removeImage() instruction.
     9I changed this to achieve more atomicity in the rotating case, and to use a single assignment to {{{ImageDisplay.this.image}}}, but overlooked that the MediaTracker would cling on to a ref, if it did not receive a removeImage() instruction.
    1010
    1111The reason to reassigning {{{img}}} is just imho:  If there ever is a need to do more post-processing to {{{img}}} in the future, we now have the modularity to plug in a code section in between the rotating code and the finalizing assignment to {{{ImageDisplay.this.image}}} in this method.