aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/text.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/text.cpp b/src/text.cpp
index 0969707c..804507b1 100644
--- a/src/text.cpp
+++ b/src/text.cpp
@@ -121,13 +121,13 @@ const bool text::operator==(const text& t) const
{
if (getWordCount() == t.getWordCount())
{
- bool equal = false;
+ bool equal = true;
std::vector <word*>::const_iterator i = m_words.begin();
std::vector <word*>::const_iterator j = t.m_words.begin();
for ( ; equal && i != m_words.end() ; ++i, ++j)
- equal = (*i == *j);
+ equal = (**i == **j);
return (equal);
}