*RichEdit: fixed user dictionary when fixedlang is active

git-svn-id: svn://ultimatepp.org/upp/trunk@2662 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2010-09-07 11:22:28 +00:00
parent b4e6c4f835
commit 9e69b2abaa
2 changed files with 4 additions and 2 deletions

View file

@ -362,7 +362,7 @@ void RichEdit::AddUserDict()
if(IsSelection()) return;
WString w = GetWordAtCursor();
if(w.IsEmpty()) return;
SpellerAdd(w, formatinfo.language);
SpellerAdd(w, fixedlang ? fixedlang : formatinfo.language);
text.ClearSpelling();
Refresh();
}

View file

@ -23,7 +23,9 @@ class SqlRaw : public String, AssignValueTypeNo<SqlRaw, SQLRAW_V> {
public:
operator Value() const { return RawValue<SqlRaw>(*this); }
SqlRaw(const Value& q)
: String(IsString(q) ? String(q) : String(RawValue<SqlRaw>::Extract(q))) {}
: String(IsNull(q) ? NULL :
IsString(q) ? String(q) :
String(RawValue<SqlRaw>::Extract(q))) {}
SqlRaw(const String& s) : String(s) {}
SqlRaw() {}
};