r23379 by jghali - #15962: File inflate from 27Mb to 60Mb

scribus-commit scribus-commit at lists.scribus.net
Tue Nov 26 11:05:26 UTC 2019


Author: jghali
Date: Tue Nov 26 11:05:25 2019
New Revision: 23379

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23379
Log:
#15962: File inflate from 27Mb to 60Mb

Modified:
    trunk/Scribus/scribus/plugins/fileloader/scribus150format/scribus150format_save.cpp

Modified: trunk/Scribus/scribus/plugins/fileloader/scribus150format/scribus150format_save.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23379&path=/trunk/Scribus/scribus/plugins/fileloader/scribus150format/scribus150format_save.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/fileloader/scribus150format/scribus150format_save.cpp	(original)
+++ trunk/Scribus/scribus/plugins/fileloader/scribus150format/scribus150format_save.cpp	Tue Nov 26 11:05:25 2019
@@ -2008,11 +2008,16 @@
 			else
 				docu.writeAttribute("NEXTITEM", -1);
 
-			PageItem* prevTopParent = item->prevInChain();
-			while (prevTopParent && prevTopParent->Parent)
-				prevTopParent = prevTopParent->Parent;
-			
-			if (item->prevInChain() != nullptr && items->contains(prevTopParent))
+			bool prevTopParentCheck = (master == ItemSelectionGroup);
+			if (master != ItemSelectionGroup)
+			{
+				PageItem* prevTopParent = item->prevInChain();
+				while (prevTopParent && prevTopParent->Parent)
+					prevTopParent = prevTopParent->Parent;
+				prevTopParentCheck = items->contains(prevTopParent);
+			}
+
+			if (item->prevInChain() != nullptr && prevTopParentCheck)
 				docu.writeAttribute("BACKITEM", qHash(item->prevInChain()) & 0x7FFFFFFF);
 			else
 			{




More information about the scribus-commit mailing list