@KevinH: if I'm reading things right, there is no current html resource being passed to the select_text dialog (SelectTarget() in Dalogs/EditTOC.cpp), thus m_CurrentHTMLResource is null in Dialogs/SetHyperlinks.cpp. This causes the crash in SetHyperlinks::SetList() somewhere in the foreach loop.. I can test for a null m_CurrentHTMLResource and prevent the crash, but then no targets from the epub are added to the resulting select dialog.
In other words: I think Dialogs/SetHyperlinks.cpp doesn't know what the current html resource IS, but it's still trying to use it.
Last edited by DiapDealer; 11-16-2019 at 09:30 AM.
|