Quote:
Originally Posted by KevinH
1. Open any epub with extra styles in an style sheet and more than one xhtml file
2. make sure Preview is showing
3. open one of the xhtml files in the book so that it shows in CodeView *and* Preview
4. navigate to the stylesheet in book browser and double click it to open the css file in the front tab
5. Use right click in the book browser to delete the xhtml file you opened first (and still showing in Preview!)
6. With the CSS tab still open in front, invoke the Tools -> DeleteUnusedStylesheetClass and tell it to delete them when asked for confirmation
7. I crash here sometimes but other times I must try a Save.
|

but always in Save
Happened when an epub was opened via calibre's built-in Open With from within a calibre library,
and when an epub was opened via Windows File Explorer Open With from the desktop. Which led me to conclude it has nothing to do with calibre's built in Open with.
I then tried to get it to crash when deleting the styles. All tests opened
a fresh copy of the same ePub from the desktop via Windows File Explorer Open With.
The first test crashed in Save, but it must have been after it did the actual writes, because the deleted .xhtml file and the styles were gone. On the second test it crashed in Save but the deleted .xhtml file and styles were still there. I did 3 more tests, first and third crashed before any writes (i.e. ePub file was not updated) and the other one after the writes (i.e. ePub file was updated). I also did a test without Preview, no problems.
Windows 10 Pro version 1607, Sigil 0.9.8 64 bit
BR