• Julien Nabet's avatar
    Related tdf#50133: Wrong underlining in Reports · 61a3ace9
    Julien Nabet yazdı
    By running some tests, I noticed double wave didn't appear when opening report in non edit mode.
    First you must know that to indicate "double wave", xml contains these 2 information:
    style:text-underline-style="wave" style:text-underline-type="double"
    
    The problem is the reading order of the parser doesn't seem the same each time.
    So if it reads style then type, it's ok thanks to this part:
        132             case awt::FontUnderline::DOUBLE:
        133                 // A double line style has priority over a bold line style,
        134                 // but not over the line style itself.
        135                 switch( eUnderline )
        136                 {
        137                 case awt::FontUnderline::SINGLE:
        138                 case awt::FontUnderline::BOLD:
        139                     break;
        140                 case awt::FontUnderline::WAVE:
        141                 case awt::FontUnderline::BOLDWAVE:
        142                     eNewUnderline = awt::FontUnderline::DOUBLEWAVE;
        143                     break;
    
    but if the parser read type in the first place then style, the case FontUnderline "DOUBLEWAVE" wasn't managed
    
    Change-Id: Ie090507898e537827eebaae157dfac248baa43f1
    Reviewed-on: https://gerrit.libreoffice.org/14801Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
    Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
    61a3ace9
Adı
Son kayıt (commit)
Son güncelleme
..
dtd Loading commit data...
inc Loading commit data...
qa Loading commit data...
source Loading commit data...
util Loading commit data...
CppunitTest_xmloff_uxmloff.mk Loading commit data...
JunitTest_xmloff_unoapi.mk Loading commit data...
Library_xo.mk Loading commit data...
Library_xof.mk Loading commit data...
Makefile Loading commit data...
Module_xmloff.mk Loading commit data...
Package_dtd.mk Loading commit data...
README Loading commit data...