[GSoC] Cleanup internal drawing units in Calc

Eike Rathke erack at redhat.com
Mon Jun 22 04:04:08 PDT 2015


Hi Krisztian,

On Sunday, 2015-06-21 22:11:44 +0200, Krisztian Pinter wrote:

> I also think I found some dead code, if someone could shed some light on
> the history of it, I would appreciate it. This is my patch which removes
> it: https://gerrit.libreoffice.org/#/c/16351/
> ScOutputData::DrawExtraShadow gets called with all false parameters which
> causes it to just skip any sort of drawing. It seems to be leftovers from
> some refactoring.

I don't think so. I haven't investigated thoroughly, but to me it looks
like only the shadow of the surrounding outer cells is suppressed in the
false case. All inner cells still have their shadow(s) drawn.

    bool bSkipY = ( nArrY==0 && !bTop ) || ( nArrY+1 == nArrCount && !bBottom );
    bool bSkipX = ( nArrX==nX1 && !bLeft ) || ( nArrX==nX2+2 && !bRight );

does not skip for 0 < nArrY < nArrCount-1 and nX1 < nArrX < nX2+2

  Eike

-- 
LibreOffice Calc developer. Number formatter stricken i18n transpositionizer.
GPG key "ID" 0x65632D3A - 2265 D7F3 A7B0 95CC 3918  630B 6A6C D5B7 6563 2D3A
Better use 64-bit 0x6A6CD5B765632D3A here is why: https://evil32.com/
Care about Free Software, support the FSFE https://fsfe.org/support/?erack
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20150622/c33f0670/attachment.sig>


More information about the LibreOffice mailing list