r22938 by jghali - #15648: Fix potential crash when loading document containing footnotes

scribus-commit scribus-commit at lists.scribus.net
Fri Apr 12 10:28:36 UTC 2019


Author: jghali
Date: Fri Apr 12 10:28:36 2019
New Revision: 22938

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22938
Log:
#15648: Fix potential crash when loading document containing footnotes

Modified:
    trunk/Scribus/scribus/util_text.cpp

Modified: trunk/Scribus/scribus/util_text.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22938&path=/trunk/Scribus/scribus/util_text.cpp
==============================================================================
--- trunk/Scribus/scribus/util_text.cpp	(original)
+++ trunk/Scribus/scribus/util_text.cpp	Fri Apr 12 10:28:36 2019
@@ -56,6 +56,9 @@
 	assert(!saxedString.isEmpty());
 
 	Serializer* dig = doc->textSerializer();
+	dig->reset();
+	dig->store<ScribusDoc>("<scribusdoc>", doc);
+
 	dig->parseMemory(saxedString);
 
 	StoryText* story = dig->result<StoryText>();




More information about the scribus-commit mailing list