r14717 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:21 CET 2010


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

Changeset: 
M  /trunk/Scribus/scribus/scribus.cpp

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




More information about the scribus-commit mailing list