summaryrefslogtreecommitdiffstats
path: root/scribus/plugins/tools/hunspellcheck/hunspellpluginimpl.cpp
diff options
context:
space:
mode:
authorcraig <craig@11d20701-8431-0410-a711-e3c959e3b870>2012-04-19 20:32:43 +0000
committercraig <craig@11d20701-8431-0410-a711-e3c959e3b870>2012-04-19 20:32:43 +0000
commitb45e4dbc89aa6f864721eba5278b8b0c11eb4ff8 (patch)
tree070be75e957291e6e3257a676b77c0d12464206f /scribus/plugins/tools/hunspellcheck/hunspellpluginimpl.cpp
parent9722f324f4a4e6b4d14026dbed8b0d6cd11618ba (diff)
downloadscribus-b45e4dbc89aa6f864721eba5278b8b0c11eb4ff8.tar.gz
scribus-b45e4dbc89aa6f864721eba5278b8b0c11eb4ff8.tar.xz
scribus-b45e4dbc89aa6f864721eba5278b8b0c11eb4ff8.zip
Fix change offset for word replacements, and simplify code a decent amount
git-svn-id: svn://scribus.net/branches/Version14x/Scribus@17457 11d20701-8431-0410-a711-e3c959e3b870
Diffstat (limited to 'scribus/plugins/tools/hunspellcheck/hunspellpluginimpl.cpp')
-rw-r--r--scribus/plugins/tools/hunspellcheck/hunspellpluginimpl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scribus/plugins/tools/hunspellcheck/hunspellpluginimpl.cpp b/scribus/plugins/tools/hunspellcheck/hunspellpluginimpl.cpp
index 61abd38..7af6181 100644
--- a/scribus/plugins/tools/hunspellcheck/hunspellpluginimpl.cpp
+++ b/scribus/plugins/tools/hunspellcheck/hunspellpluginimpl.cpp
@@ -177,6 +177,7 @@ bool HunspellPluginImpl::parseTextFrame(PageItem *frameToCheck)
wf.replacements=replacements;
wf.changed=false;
wf.ignore=false;
+ wf.changeOffset=0;
wordsToCorrect.append(wf);
}
}