mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Guard 'isNumberChar()' from char outside ucs4-range
This commit is contained in:
parent
82af8778f1
commit
5f5a43eb9e
@ -191,6 +191,9 @@ bool isDigitASCII(char_type c)
|
||||
|
||||
bool isNumberChar(char_type c)
|
||||
{
|
||||
if (c > ucs4_max)
|
||||
// outside the UCS4 range
|
||||
return false;
|
||||
return ucs4_to_qchar(c).isNumber();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user