Skip to content

Commit b514d1f

Browse files
committed
Merge pull request #4161 from wordpress-mobile/issue/391editor-fix-legacy-image-settings
Legacy Editor: Associate the mediafile with newly created image span
2 parents 2619652 + 3f7ce9c commit b514d1f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libs/editor/WordPressEditor/src/main/java/org/wordpress/android/editor/LegacyEditorFragment.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,7 @@ private WPEditImageSpan createWPEditImageSpanLocal(Context context, MediaFile me
484484
}
485485
WPEditImageSpan imageSpan = new WPEditImageSpan(context, thumbnailBitmap, imageUri);
486486
mediaFile.setWidth(MediaUtils.getMinimumImageWidth(context, imageUri, mBlogSettingMaxImageWidth));
487+
imageSpan.setMediaFile(mediaFile);
487488
return imageSpan;
488489
}
489490

0 commit comments

Comments
 (0)