diff --git a/uppsrc/RichEdit/Cursor.cpp b/uppsrc/RichEdit/Cursor.cpp index ae61f6070..2b22502b3 100644 --- a/uppsrc/RichEdit/Cursor.cpp +++ b/uppsrc/RichEdit/Cursor.cpp @@ -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(); } diff --git a/uppsrc/Sql/Sqls.h b/uppsrc/Sql/Sqls.h index 29c38e8e3..afc74f965 100644 --- a/uppsrc/Sql/Sqls.h +++ b/uppsrc/Sql/Sqls.h @@ -23,7 +23,9 @@ class SqlRaw : public String, AssignValueTypeNo { public: operator Value() const { return RawValue(*this); } SqlRaw(const Value& q) - : String(IsString(q) ? String(q) : String(RawValue::Extract(q))) {} + : String(IsNull(q) ? NULL : + IsString(q) ? String(q) : + String(RawValue::Extract(q))) {} SqlRaw(const String& s) : String(s) {} SqlRaw() {} };