diff options
author | fxwan <wanliyou@gmail.com> | 2017-05-15 19:18:08 +0800 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2017-09-03 02:16:48 +0200 |
commit | b6670e95ed41794bdade85bf2728b26fc7083e81 (patch) | |
tree | a60738e0c47435cbd3475cebffd0f7bc52d97a82 /filter | |
parent | 9d4fc496d498f2f5c7fedba94f656ef3189b85dd (diff) |
svg.js: fix undefined variable
Change-Id: I9f79d400e78e42b47ebb4078e2618789c34da85a
Reviewed-on: https://gerrit.libreoffice.org/37640
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/svg/presentation_engine.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/filter/source/svg/presentation_engine.js b/filter/source/svg/presentation_engine.js index f6db576a898b..7dbe377697dd 100644 --- a/filter/source/svg/presentation_engine.js +++ b/filter/source/svg/presentation_engine.js @@ -1532,7 +1532,7 @@ function configureDetectionTools() return flag; }; - Source.prototype.parseSegment = function() { + Source.prototype.parseSegment = function(owningPathSegList) { var lookahead = this._string[this._currentIndex]; var command = this._pathSegTypeFromChar(lookahead); if (command == SVGPathSeg.PATHSEG_UNKNOWN) { @@ -1638,7 +1638,7 @@ function configureDetectionTools() return []; var builder = new Builder(); while (source.hasMoreData()) { - var pathSeg = source.parseSegment(); + var pathSeg = source.parseSegment(owningPathSegList); if (!pathSeg) return []; builder.appendSegment(pathSeg); |