mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-25 14:22:54 -06:00
CtrlCore: Fixed encoding issue with Win32 clipboard text
git-svn-id: svn://ultimatepp.org/upp/trunk@15926 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
9be3584f71
commit
e4e867040c
2 changed files with 5 additions and 2 deletions
|
|
@ -380,7 +380,7 @@ Value ConvertDouble::Scan(const Value& txt) const {
|
|||
|
||||
int ConvertDouble::Filter(int chr) const {
|
||||
chr = CharFilterDouble(chr);
|
||||
return comma && chr == '.' ? ',' : chr;
|
||||
return comma && chr == '.' ? ',' : chr;
|
||||
}
|
||||
|
||||
ConvertDouble::ConvertDouble(double minval, double maxval, bool notnull)
|
||||
|
|
|
|||
|
|
@ -315,7 +315,10 @@ String ReadClipboardText()
|
|||
#ifdef PLATFORM_WINCE
|
||||
return ReadClipboardUnicodeText().ToString();
|
||||
#else
|
||||
String s = ReadClipboard((const char *)CF_TEXT);
|
||||
String s = ReadClipboardUnicodeText().ToString();
|
||||
if(s.GetCount())
|
||||
return s;
|
||||
s = ReadClipboard((const char *)CF_TEXT);
|
||||
return String(s, (int)strlen(~s));
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue