• Justin Luth's avatar
    writerfilter: not FirstParaInSection if IsInShape · b88da9b4
    Justin Luth yazdı
    Since anchored objects can contain paragraphs, considering all
    of them to be "firstParagraphs" would generally be considered
    an incorrect result. Browsing through the existing uses of
    IsFirstPara.*InSection I didn't see any that looked like
    it should be considered true if IsInShape.
    
    Since this is the kind of gotcha that that the programmer
    should be aware of, add it directly into the function instead
    of requiring each use to have an additional qualification.
    
    The following ooxml unit tests match these conditions, but
    only one was fixed - the rest were unaffected since they just
    avoided adding/removing dummy paragraphs.
    fdo79540.docx - 5
    tblppr-shape.docx - 5
    ooo47778-3.odt- 5
    ooo47778-4.odt- 5
    textbox-rounded-corners.docx - 7
    n780563.docx - 8
    missing-path.docx - 10
    floating-tables-anchor.docx - 10
    tdf117805.odt - 11  (fixed - prevented extra section paragraphs)
    
    Change-Id: I841475e214c194a673321c1229d9254dd07205f8
    Reviewed-on: https://gerrit.libreoffice.org/59659
    Tested-by: Jenkins
    Reviewed-by: 's avatarLászló Németh <nemeth@numbertext.org>
    b88da9b4
Adı
Son kayıt (commit)
Son güncelleme
..
api Loading commit data...
complex/indeterminateState Loading commit data...
core Loading commit data...
extras Loading commit data...
python Loading commit data...
uitest Loading commit data...
unit Loading commit data...
unoapi Loading commit data...
README Loading commit data...