mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-26 08:04:56 +01:00
Fix font regression
This commit is contained in:
parent
7fe3631b86
commit
c2189a31fa
@ -70,7 +70,7 @@ class Font {
|
|||||||
|
|
||||||
setSize(value) {
|
setSize(value) {
|
||||||
const size = Number.parseInt(value, 10);
|
const size = Number.parseInt(value, 10);
|
||||||
$assert(!Number.isFinite(size), 'size must be a valid integer');
|
$assert(Number.isFinite(size), `size must be a valid integer: ${value}`);
|
||||||
this._size = size;
|
this._size = size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user