• Noel Grandin's avatar
    ofz#6372 fix bitmap decoding of pattern in LwpBackgroundStuff · 380da094
    Noel Grandin yazdı
    after
        commit b90e098a
        use BitmapEx in LwpBackgroundStuff
    
    <caolan> maybe the lotuswordpro original stride is really 4 after all
    (as a common stride), with the first byte on each line containing the
    8bits for each row
    
    The original code in GetPattern() looked pretty dodgy since it was
    copying 32-bytes into an 8 byte buffer.
    Assume that the reversing part is right, and that the format is really a
    1bit packed 8x8 image.
    
    Also fix the decoding of such a image in CreateFromData to assume packed
    format, which is more predictable.
    
    Also fix the bug in createDefaultCross_3x3 which changing the assert
    revealed.
    
    Change-Id: I7196ae601429bbe0f842399df61c8b858e022d3e
    Reviewed-on: https://gerrit.libreoffice.org/49808Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
    Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
    380da094
Adı
Son kayıt (commit)
Son güncelleme
..
inc Loading commit data...
qa/cppunit Loading commit data...
source/filter Loading commit data...
util Loading commit data...
CppunitTest_lotuswordpro_test_lotuswordpro.mk Loading commit data...
Library_lwpft.mk Loading commit data...
Makefile Loading commit data...
Module_lotuswordpro.mk Loading commit data...
README Loading commit data...