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:46:32 +0200
commit2c91705505c6f1e22a0bb5b794b39267c6b11136 (patch)
tree12fc8ba547c2921486dabbc94587cea248b9e84e
parente055b4a0fc23e1d0ad5d498f9195790dd41f6b3e (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/59724 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 659a572ba369..b7a3e6c5f92e 100644
--- a/svx/source/dialog/dlgctrl.cxx
+++ b/svx/source/dialog/dlgctrl.cxx
@@ -1279,7 +1279,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++)
{