r20550 by craig -

scribus-commit scribus-commit at lists.scribus.net
Thu Nov 12 22:00:58 UTC 2015


Author: craig
Date: Thu Nov 12 22:00:58 2015
New Revision: 20550

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20550
Log:
#13490: after inserting a footnote before an existing footnote the format of the new footnote text is wrong <aliyousuf>

Modified:
    trunk/Scribus/scribus/pageitem_textframe.cpp

Modified: trunk/Scribus/scribus/pageitem_textframe.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20550&path=/trunk/Scribus/scribus/pageitem_textframe.cpp
==============================================================================
--- trunk/Scribus/scribus/pageitem_textframe.cpp	(original)
+++ trunk/Scribus/scribus/pageitem_textframe.cpp	Thu Nov 12 22:00:58 2015
@@ -1618,6 +1618,16 @@
 			}
 			if (current.itemsInLine == 0)
 				opticalMargins = style.opticalMargins();
+			//-->#13490
+			if (isNoteFrame() && !mark)
+			{
+				StyleFlag s(itemText.charStyle(a).effects());
+				s &= ~ScStyle_Superscript;
+				CharStyle haveSuperscript;
+				haveSuperscript.setFeatures(s.featureList());
+				itemText.applyCharStyle(a, 1, haveSuperscript);
+			}
+			//--<#13490
 			CharStyle charStyle = ((itemText.text(a) != SpecialChars::PARSEP) ? itemText.charStyle(a) : style.charStyle());
 			chstr = ExpandToken(a);
 			int chstrLen = chstr.length();




More information about the scribus-commit mailing list