[Libreoffice-commits] core.git: svx/source

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


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

New commits:
commit 2c91705505c6f1e22a0bb5b794b39267c6b11136
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:46:32 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/59724
    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 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++)
         {


More information about the Libreoffice-commits mailing list