When the cursor moves to a clue with a nonprintable
character, the old clue continues to be shown, and the
clue with unprintable character is never shown.
The following patch corrects this problem by removing
the unprintable characters.
diff -Naur editted/src/Interface.cpp
xword-0.07/src/Interface.cpp
--- editted/src/Interface.cpp 2005-09-24
02:27:14.000000000 -0400
+++ xword-0.07/src/Interface.cpp 2002-01-23
14:43:03.000000000 -0500
@@ -213,13 +213,9 @@
std::string s;
int nClue;
m_pPuzzle->GetClue(nX, nY, true, s, nClue);
- for (String::iterator p = s.begin(); s.end() > p;
p++)
- if (32 > *p || 126 < *p) {s.erase(p);}
m_labelAcross.set(s);
m_labelAcrossNum.set(String(nClue));
m_pPuzzle->GetClue(nX, nY, false, s, nClue);
- for (String::iterator p = s.begin(); s.end() > p;
p++)
- if (32 > *p || 126 < *p) {s.erase(p);}
m_labelDown.set(s);
m_labelDownNum.set(String(nClue));
}
Corrected file set