diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-12 15:31:18 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-12 18:29:47 +0100 |
commit | 457204cfce253450283de1c96b9178f4d9246405 (patch) | |
tree | 0182c7fffc3b836acab598f7d276182821c85578 /vcl | |
parent | ac97ca547de9593ff5f8e7615f1aa779a5091126 (diff) |
fix pixel address calculation in RawBitmap
Change-Id: I42476a8049330ff02c555ecba49b49f3cf012086
Reviewed-on: https://gerrit.libreoffice.org/49599
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/bitmap/BitmapTools.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/bitmap/BitmapTools.cxx b/vcl/source/bitmap/BitmapTools.cxx index 767b4de7e25a..5f3d1062275e 100644 --- a/vcl/source/bitmap/BitmapTools.cxx +++ b/vcl/source/bitmap/BitmapTools.cxx @@ -151,7 +151,7 @@ BitmapEx CreateFromData( RawBitmap&& rawBitmap ) auto nWidth = rawBitmap.maSize.getWidth(); for( long y = 0; y < nHeight; ++y ) { - sal_uInt8 const *p = rawBitmap.mpData.get() + y * nWidth; + sal_uInt8 const *p = rawBitmap.mpData.get() + (y * nWidth * 3); Scanline pScanline = pWrite->GetScanline(y); for (long x = 0; x < nWidth; ++x) { |