View Single Post
Old 11-16-2019, 09:25 AM   #151
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,661
Karma: 205039118
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
@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.
DiapDealer is offline   Reply With Quote