mirror of
https://github.com/ONLYOFFICE/sdkjs.git
synced 2026-04-07 14:09:12 +08:00
Add check for required arguments in ApiPictureForm.SetImage
This commit is contained in:
@ -23987,6 +23987,10 @@
|
||||
*/
|
||||
ApiPictureForm.prototype.SetImage = function(sImageSrc, nWidth, nHeight)
|
||||
{
|
||||
if (!AscFormat.isRealNumber(nWidth) || !AscFormat.isRealNumber(nHeight)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return executeNoFormLockCheck(function(){
|
||||
if (typeof(sImageSrc) !== "string" || sImageSrc === "")
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user