r21129 by jghali -
scribus-commit
scribus-commit at lists.scribus.net
Mon Mar 28 17:01:49 UTC 2016
Author: jghali
Date: Mon Mar 28 17:01:49 2016
New Revision: 21129
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21129
Log:
fix rare case of incorrect displayed text properties in PP
Modified:
trunk/Scribus/scribus/pageitem.cpp
Modified: trunk/Scribus/scribus/pageitem.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21129&path=/trunk/Scribus/scribus/pageitem.cpp
==============================================================================
--- trunk/Scribus/scribus/pageitem.cpp (original)
+++ trunk/Scribus/scribus/pageitem.cpp Mon Mar 28 17:01:49 2016
@@ -1551,7 +1551,11 @@
position = qMin(qMax(itemText.endOfSelection() - 1, 0), qMax(position, itemText.startOfSelection()));
if (frameDisplays(position))
- parStyle.charStyle().setStyle( itemText.charStyle(position) );
+ {
+ // Do not use setStyle here otherwise char style properties explicitly
+ // set at paragraph level without using styles might get lost
+ parStyle.charStyle().applyCharStyle( itemText.charStyle(position) );
+ }
else
parStyle.charStyle().setStyle( itemText.defaultStyle().charStyle() );
}
More information about the scribus-commit
mailing list