r17361 by fschmid - Fixed logical error in apply paragraph style which prevents correct setting of the style via the properties palette.

scribus-commit scribus-commit at lists.scribus.net
Tue Mar 6 22:29:53 UTC 2012


Author: fschmid
Date: Tue Mar  6 22:29:53 2012
New Revision: 17361

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17361
Log:
Fixed logical error in apply paragraph style which prevents correct setting of the style via the properties palette.

Modified:
    trunk/Scribus/scribus/scribusdoc.cpp

Modified: trunk/Scribus/scribus/scribusdoc.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17361&path=/trunk/Scribus/scribus/scribusdoc.cpp
==============================================================================
--- trunk/Scribus/scribus/scribusdoc.cpp (original)
+++ trunk/Scribus/scribus/scribusdoc.cpp Tue Mar  6 22:29:53 2012
@@ -8055,7 +8055,7 @@
 	{
 		PageItem *currItem = itemSelection->itemAt(aa);
 		int currItemTextCount = currItem->itemText.length();
-		if ((currItemTextCount == 0) || ((appMode == modeEdit) || (appMode == modeEditTable)))
+		if ((currItemTextCount == 0) || ((appMode != modeEdit) && (appMode != modeEditTable)))
 		{
 			ParagraphStyle dstyle(currItem->itemText.defaultStyle());
 			dstyle.applyStyle(newStyle);




More information about the scribus-commit mailing list