File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -478,6 +478,11 @@ - (UIImage*)createImageWithTransparentBackground: (BOOL) transparent includeImag
478478 CGContextDrawImage (context, targetRect, _frozenImage);
479479 CGContextDrawImage (context, targetRect, _translucentFrozenImage);
480480
481+ // Include current incomplete path in saved image
482+ if (_currentPath) {
483+ [_currentPath drawInContext: context];
484+ }
485+
481486 if (includeText) {
482487 @autoreleasepool {
483488 for (CanvasText *text in _arrTextOnSketch) {
@@ -514,6 +519,11 @@ - (UIImage*)createImageWithTransparentBackground: (BOOL) transparent includeImag
514519 CGContextDrawImage (context, rect, _frozenImage);
515520 CGContextDrawImage (context, rect, _translucentFrozenImage);
516521
522+ // Include current incomplete path in saved image
523+ if (_currentPath) {
524+ [_currentPath drawInContext: context];
525+ }
526+
517527 if (includeText) {
518528 for (CanvasText *text in _arrTextOnSketch) {
519529 @autoreleasepool {
You can’t perform that action at this time.
0 commit comments