From b50e03fd9b56bcedf1dcc7ccfd16b223e39271bc Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 28 Aug 2018 17:20:21 +0100 Subject: tdf#119122 first (5%) pattern initially drawn with too many black cells MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pattern of area tab, pattern subtab of e.g. format page and in the pattern editor the 5% style is shown wrong, clicking ona different pattern and then back may make it draw correct a problem since... commit 6fbb6d80fe6203ff6f84ee85ca625b6e60bf5bae Date: Fri Feb 16 16:13:38 2018 +0200 use std::array in createHistorical8x8FromArray to make the assumption about the size of the array obvious in the code. Change-Id: I882384a13dedc7a14b63b3b8a9b764a4367b7cc6 Reviewed-on: https://gerrit.libreoffice.org/59726 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- svx/source/dialog/dlgctrl.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'svx') diff --git a/svx/source/dialog/dlgctrl.cxx b/svx/source/dialog/dlgctrl.cxx index f5ec3b570d93..2aa91452c139 100644 --- a/svx/source/dialog/dlgctrl.cxx +++ b/svx/source/dialog/dlgctrl.cxx @@ -1282,7 +1282,7 @@ void SvxPixelCtl::Paint( vcl::RenderContext& rRenderContext, const tools::Rectan //Draw Rectangles (squares) rRenderContext.SetLineColor(); - sal_uInt16 nLastPixel = maPixelData[0]; + sal_uInt16 nLastPixel = maPixelData[0] ? 0 : 1; for (i = 0; i < nLines; i++) { -- cgit v1.2.3