[Libreoffice-commits] core.git: Branch 'libreoffice-6-1' - svx/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Aug 28 18:48:04 UTC 2018


 svx/source/dialog/dlgctrl.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit b50e03fd9b56bcedf1dcc7ccfd16b223e39271bc
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Aug 28 17:20:21 2018 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue Aug 28 20:47:36 2018 +0200

    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 at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

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++)
         {


More information about the Libreoffice-commits mailing list