RichEditBox: picture and content after the picture disappear (Windows 10 1703 Creators Update)

纵饮孤独 提交于 2019-12-25 16:05:00

问题


In Windows 10 1703 Creators Update a new bug appeared.

Steps to reproduce:

  1. Load an RTF document with a picture into RichEditBox
  2. Save it.
  3. Save it again.
  4. Reload it or open it with another app - you will see that the picture is gone and all the content after it is gone too.

I submitted this bug here in FeedbackHub app.

The question is how to avoid this bug or make a workaround?


回答1:


This project on GitHub is to demonstrate the bug and to fix it.

After you save the document for the 2-nd time, the picture is gone, but the closing brace '}' for the picture block is still there, so all the content that comes after the brace '}' cannot be read.

So we simply remove the odd brace and restore the picture that was gone using the same document (but unchanged one).



来源:https://stackoverflow.com/questions/44325651/richeditbox-picture-and-content-after-the-picture-disappear-windows-10-1703-cr

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!