r14718 by cbradney - Don't set up the hyphenator if it is not used

scribus-commit scribus-commit at lists.scribus.net
Sun Feb 14 23:40:39 CET 2010


Revision: 14718
Author: cbradney
Date: 2010-02-14T22:31:56.611875Z
Commit message: Don't set up the hyphenator if it is not used

Changeset: 
M  /branches/Version135/Scribus/scribus/scribus.cpp

Diffs:
Index: scribus/scribus.cpp
===================================================================
--- scribus/scribus.cpp	(revision 14717)
+++ scribus/scribus.cpp	(revision 14718)
@@ -2256,8 +2256,11 @@
 		view = tempView;
 	tempDoc->setCurrentPage(tempDoc->Pages->at(0));
 	tempDoc->setGUI(requiresGUI, this, tempView);
-	tempDoc->docHyphenator->ignoredWords = prefsManager->appPrefs.ignoredWords;
-	tempDoc->docHyphenator->specialWords = prefsManager->appPrefs.specialWords;
+	if (requiresGUI)
+	{
+		tempDoc->docHyphenator->ignoredWords = prefsManager->appPrefs.ignoredWords;
+		tempDoc->docHyphenator->specialWords = prefsManager->appPrefs.specialWords;
+	}
 	tempDoc->setLoading(false);
 	//run after setGUI to set up guidepalette ok
 




More information about the scribus-commit mailing list