DuckX icon indicating copy to clipboard operation
DuckX copied to clipboard

doc.open crashes if doc is not a word document

Open RuurddeRonde opened this issue 4 years ago • 1 comments

Describe the bug Whenever .open is called on a Document object that has a directory that is not a word document the application crashes.

To Reproduce Steps to reproduce the behavior: create a project and add this code: duckx::Document doc("test.docx"); doc.open();

make sure test.docx does not exist

run the code

Expected behavior A new docx file named test should be crated, but instead the application crashes

Screenshots image

Desktop (please complete the following information):

  • OS: windows 10

Additional context Add any other context about the problem here.

RuurddeRonde avatar Apr 28 '20 15:04 RuurddeRonde

Thank you @RuurddeRonde for reporting the bug. We'll have a fix ready very soon :v:

amiremohamadi avatar May 18 '20 08:05 amiremohamadi