mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-22 06:12:32 -06:00
*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:
parent
b4e6c4f835
commit
9e69b2abaa
2 changed files with 4 additions and 2 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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() {}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue