Skip to content

Commit

Permalink
MacGui: restore the NSGraphicsContext after it has been used.
Browse files Browse the repository at this point in the history
  • Loading branch information
galad87 committed Dec 20, 2016
1 parent 72e77ef commit 4e1392a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions macosx/HBToolbarBadgedItem.m
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,8 @@ - (NSImage *)HB_renderImage:(NSImage *)image withBadge:(NSString *)badgeString
CGContextFlush(context);
CGContextRestoreGState(context);

[NSGraphicsContext restoreGraphicsState];

[newImage addRepresentation:newRep];
}

Expand Down

0 comments on commit 4e1392a

Please sign in to comment.