diff --git a/library/src/main/ets/components/imageknife/utils/svg/SVGParseImpl.ets b/library/src/main/ets/components/imageknife/utils/svg/SVGParseImpl.ets index 83abcbd..e403d55 100644 --- a/library/src/main/ets/components/imageknife/utils/svg/SVGParseImpl.ets +++ b/library/src/main/ets/components/imageknife/utils/svg/SVGParseImpl.ets @@ -36,7 +36,7 @@ export class SVGParseImpl implements IParseSvg { editable: true, desiredSize: defaultSize }; - if (request?.downsampType.getName()!==undefined && request?.downsampType.getName()!=='DownsampleNone') { + if (option?.downsampType.getName()!==undefined && option?.downsampType.getName()!=='DownsampleNone') { const b: ESObject = new Downsampler().calculateScaling(imageInfo, hValue, wValue, option) opts = { editable: true,