From 6295383c8f02332fcf4a91fd44abc63c02bc43af Mon Sep 17 00:00:00 2001 From: Newbie012 Date: Sat, 7 Dec 2019 23:09:07 +0200 Subject: [PATCH] Allow to add rId to picture manually --- source/lib/drawing/picture.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/source/lib/drawing/picture.js b/source/lib/drawing/picture.js index c4db604..02a2c58 100644 --- a/source/lib/drawing/picture.js +++ b/source/lib/drawing/picture.js @@ -55,6 +55,7 @@ class Picture extends Drawing { this._descr = null; this._title = null; this._id; + this._rId; // picLocks ยง20.1.2.2.31 picLocks (Picture Locks) this.noGrp; this.noSelect; @@ -89,7 +90,10 @@ class Picture extends Drawing { } get rId() { - return 'rId' + this._id; + return this._rId; + } + set rId(rId) { + this._rId = 'rId' + rId; } get description() { @@ -198,4 +202,4 @@ class Picture extends Drawing { } } -module.exports = Picture; \ No newline at end of file +module.exports = Picture;