Skip to content

Protect CPTLayer against invalid rendering context #133

@mike-lischke

Description

@mike-lischke

In certain (error) cases it can happen CPTLayer gets a 0 context in drawInContext and it should protect against that by not render at all (maybe issue a warning). This will also prevent a crash in CPTPushCGContext if there's no current graphics context.

I have seen this problem when using the new NSTitlebarAccessoryViewController in OSX 10.10 (via 3rd party component WAYWindow).

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions