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 ::const_iterator i = m_words.begin(); std::vector ::const_iterator j = t.m_words.begin(); for ( ; equal && i != m_words.end() ; ++i, ++j) - equal = (*i == *j); + equal = (**i == **j); return (equal); }