summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-08-28 17:20:21 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-08-28 20:47:36 +0200
commitb50e03fd9b56bcedf1dcc7ccfd16b223e39271bc (patch)
tree0d4c7624881ce0b7c61390cb52115e70c544c76d
parente7d3e0b101ff25bb7edd49df61e330ccb4b75a24 (diff)
tdf#119122 first (5%) pattern initially drawn with too many black cells
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 <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--svx/source/dialog/dlgctrl.cxx2
1 files changed, 1 insertions, 1 deletions
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++)
{