summaryrefslogtreecommitdiffstats
path: root/scribus/text/storytext.cpp
diff options
context:
space:
mode:
authorcraig <craig@11d20701-8431-0410-a711-e3c959e3b870>2012-05-04 14:26:58 +0000
committercraig <craig@11d20701-8431-0410-a711-e3c959e3b870>2012-05-04 14:26:58 +0000
commit1601800e7d74c192af89ee85c6110bd80a02453a (patch)
treee0c473e40bac26e8e56ce3d5a8e0b5c1dfda623d /scribus/text/storytext.cpp
parent551faae07c1a1dc272fd61a93ebffb901e382a07 (diff)
downloadscribus-1601800e7d74c192af89ee85c6110bd80a02453a.tar.gz
scribus-1601800e7d74c192af89ee85c6110bd80a02453a.tar.xz
scribus-1601800e7d74c192af89ee85c6110bd80a02453a.zip
Bump hunspell plugin, simplify a little. Allow the LibreOffice dict finder use the dict dirs properly
git-svn-id: svn://scribus.net/branches/Version14x/Scribus@17494 11d20701-8431-0410-a711-e3c959e3b870
Diffstat (limited to 'scribus/text/storytext.cpp')
-rw-r--r--scribus/text/storytext.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/scribus/text/storytext.cpp b/scribus/text/storytext.cpp
index 531744a..d85eee5 100644
--- a/scribus/text/storytext.cpp
+++ b/scribus/text/storytext.cpp
@@ -1154,6 +1154,20 @@ int StoryText::prevWord(int pos)
--pos;
return wordBoundaries.indexOf(text(pos)) < 0 ? pos + 1 : pos;
}
+
+int StoryText::endOfWord(int pos) const
+{
+ int len = length();
+ while (pos < len)
+ {
+ if(text(pos).isLetter())
+ ++pos;
+ else
+ break;
+ }
+ return pos;
+}
+
int StoryText::nextSentence(int pos)
{
int len = length();