diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-03-11 17:29:05 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-03-11 17:31:41 +0000 |
commit | 28e61b634353110445e334ccaa415d7fb6629d62 (patch) | |
tree | 8f7c3aac88026e658490293b27b1d89a77f16168 /vcl | |
parent | 441534187d6a999e12e4588728023e01d9578770 (diff) |
ofz#817 nStrLen-1 changed to nStrLen-3
regression from...
commit ff8f6629287d0d1bdbcf4f8ed16cb8d077d08c7a
Author: Caolán McNamara <caolanm@redhat.com>
Date: Thu Jan 19 16:56:34 2017 +0000
Resolves: ofz#424 guard against broken dxary length
but this weird typo doesn't appears in the 5-2 and 5-3 backports,
odd how I managed that
Change-Id: I5fb1db2284d48ee78e717d41274a3d37ab0255cf
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/svmconverter.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/gdi/svmconverter.cxx b/vcl/source/gdi/svmconverter.cxx index 6149f00b36c4..2e08f1aaeb2b 100644 --- a/vcl/source/gdi/svmconverter.cxx +++ b/vcl/source/gdi/svmconverter.cxx @@ -988,7 +988,7 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf ) // difference to last elem and store // in very last. if( nStrLen > 1 ) - pDXAry[ nStrLen-3 ] = pDXAry[ nStrLen-2 ] + pTmpAry[ nStrLen-1 ] - pTmpAry[ nStrLen-2 ]; + pDXAry[ nStrLen-1 ] = pDXAry[ nStrLen-2 ] + pTmpAry[ nStrLen-1 ] - pTmpAry[ nStrLen-2 ]; else pDXAry[ nStrLen-1 ] = pTmpAry[ nStrLen-1 ]; // len=1: 0th position taken to be 0 } |