r22580 by jghali - Fix omission in previous commit

scribus-commit scribus-commit at lists.scribus.net
Wed Jun 6 20:32:18 UTC 2018


Author: jghali
Date: Wed Jun  6 20:32:18 2018
New Revision: 22580

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22580
Log:
Fix omission in previous commit

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

Modified: trunk/Scribus/scribus/plugins/fileloader/scribus150format/scribus150format.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22580&path=/trunk/Scribus/scribus/plugins/fileloader/scribus150format/scribus150format.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/fileloader/scribus150format/scribus150format.cpp	(original)
+++ trunk/Scribus/scribus/plugins/fileloader/scribus150format/scribus150format.cpp	Wed Jun  6 20:32:18 2018
@@ -4128,10 +4128,15 @@
 				else
 				{
 					//set pointer to item holds mark in his text
+					CharStyle newStyle;
 					if (t == MARKAnchorType)
 						mark->setItemPtr(newItem);
 					mark->OwnPage = newItem->OwnPage;
 					newItem->itemText.insertMark(mark, newItem->itemText.length());
+					readCharacterStyleAttrs(doc, tAtt, newStyle);
+					newItem->itemText.setCharStyle(newItem->itemText.length() - 1, 1, newStyle);
+					lastStyle->StyleStart = newItem->itemText.length() - 1;
+					lastStyle->Style = newStyle;
 				}
 			}
 		}
@@ -4631,6 +4636,8 @@
 				item->itemText.insertMark(mark, item->itemText.length());
 				readCharacterStyleAttrs(doc, tAtt, newStyle);
 				item->itemText.setCharStyle(item->itemText.length() - 1, 1, newStyle);
+				lastStyle->StyleStart = item->itemText.length() - 1;
+				lastStyle->Style = newStyle;
 			}
 		}
 	}




More information about the scribus-commit mailing list