r15489 by jghali - #9371: Non-breakable spaces disappear when text is converted to outlines

scribus-commit scribus-commit at lists.scribus.net
Tue Sep 28 23:00:44 CEST 2010


Author: jghali
Date: Tue Sep 28 21:00:44 2010
New Revision: 15489

URL: http://scribus.info/websvn/listing.php?repname=Scribus&sc=1&rev=15489
Log:
#9371: Non-breakable spaces disappear when text is converted to outlines

Modified:
    trunk/Scribus/scribus/scribusview.cpp

Modified: trunk/Scribus/scribus/scribusview.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=15489&path=/trunk/Scribus/scribus/scribusview.cpp
==============================================================================
--- trunk/Scribus/scribus/scribusview.cpp (original)
+++ trunk/Scribus/scribus/scribusview.cpp Tue Sep 28 21:00:44 2010
@@ -3694,7 +3694,7 @@
 						undoManager->setUndoEnabled(true);
 						newGroupedItems.append(Doc->Items->takeAt(z));
 					}
-					if (chstr != QChar(32))
+					if ((chstr.length() > 0) && (!chstr.at(0).isSpace()))
 					{
 						pts = hl->font().glyphOutline(gl);
 						if (pts.size() < 4)
@@ -3937,7 +3937,7 @@
 							undoManager->setUndoEnabled(true);
 							newGroupedItems.append(Doc->Items->takeAt(z));
 						}
-						if (chstr != QChar(32))
+						if ((chstr.length() > 0) && (!chstr.at(0).isSpace()))
 						{
 							pts = hl->font().glyphOutline(gl);
 							if (pts.size() < 4)




More information about the scribus-commit mailing list