Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit 620c6a64 authored by Jeremy Whiting's avatar Jeremy Whiting

Fix bug when using all uppercase option to make words match.

parent 31632bbb
......@@ -490,13 +490,14 @@ void KanagramGame::revealWord()
bool KanagramGame::checkWord(QString answer)
QString enteredWord = answer.toLower().trimmed();
QString lowerOriginal = m_originalWord.toLower();
QString strippedOriginal = stripAccents(m_originalWord);
if (!enteredWord.isEmpty())
if (enteredWord == m_originalWord ||
if (enteredWord == lowerOriginal ||
stripAccents(enteredWord) == strippedOriginal ||
(m_speller->isCorrect(enteredWord) && m_speller->isValid() &&
(isAnagram(enteredWord, m_originalWord) ||
(isAnagram(enteredWord, lowerOriginal) ||
isAnagram(enteredWord, strippedOriginal))))
if (KanagramSettings::enablePronunciation())
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment