Skip to content

Obsolete GC operations in history #503

@HeikoKlare

Description

@HeikoKlare

The GC stores every operation changing the GC state to be able to repply it if a handle for a different zoom is requested. There are some operations which, if executing an operation of the same type subsequently, supercede each other. This, for example, applies to setting fonts, as when settings two fonts after each other, only the last one set is relevant. This was the reason for adapting the GC in Draw2d's FigureUtilities. That, however, introduced multiple issues, including (but not limited to) reduced testability of memory leaks in diagrams as the statically stores but frequently replaced GCs will be detected as memory leaks.

The proposed change allows to revert the changes to FigureUtilites as it resolves the memory leak already in SWT/GC.

Tracking ticket for:

Metadata

Metadata

Assignees

No one assigned

    Labels

    HiDPIA HiDPI-Related Issue or FeatureSWTIssue for SWTVectorIssues specifically relevant for Vector Informatik

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions