r24234 by jghali - #16327: libhunspellplugin.so fails to load

scribus-commit scribus-commit at lists.scribus.net
Fri Nov 13 22:11:12 UTC 2020


Author: jghali
Date: Fri Nov 13 22:11:12 2020
New Revision: 24234

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24234
Log:
#16327: libhunspellplugin.so fails to load

Modified:
    trunk/Scribus/scribus/text/storytext.cpp
    trunk/Scribus/scribus/text/storytext.h

Modified: trunk/Scribus/scribus/text/storytext.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24234&path=/trunk/Scribus/scribus/text/storytext.cpp
==============================================================================
--- trunk/Scribus/scribus/text/storytext.cpp	(original)
+++ trunk/Scribus/scribus/text/storytext.cpp	Fri Nov 13 22:11:12 2020
@@ -32,6 +32,7 @@
 #include "scfonts.h"
 #include "scribusdoc.h"
 #include "sctext_shared.h"
+#include "scworditerator.h"
 #include "selection.h"
 #include "storytext.h"
 //
@@ -2027,6 +2028,11 @@
 		d->selFirst -= 1;
 	if (isHighSurrogate(d->selLast) && isLowSurrogate(d->selLast + 1))
 		d->selLast += 1;
+}
+
+ScWordIterator* StoryText::createWordIterator()
+{
+	return new ScWordIterator(*this);
 }
 
 BreakIterator* StoryText::m_graphemeIterator = nullptr;

Modified: trunk/Scribus/scribus/text/storytext.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24234&path=/trunk/Scribus/scribus/text/storytext.h
==============================================================================
--- trunk/Scribus/scribus/text/storytext.h	(original)
+++ trunk/Scribus/scribus/text/storytext.h	Fri Nov 13 22:11:12 2020
@@ -46,6 +46,7 @@
 class PageItem;
 class ScribusDoc;
 class ScText_Shared;
+class ScWordIterator;
 class ResourceCollection;
 class ShapedTextCache;
 
@@ -266,6 +267,8 @@
 	static icu::BreakIterator* getWordIterator();
 	static icu::BreakIterator* getSentenceIterator();
 	static icu::BreakIterator* getLineIterator();
+	
+	ScWordIterator* createWordIterator();
 
 // layout helpers
 




More information about the scribus-commit mailing list