• Miklos Vajna's avatar
    tdf#78902 VML import: workaround for extreme top margin · d66df3d3
    Miklos Vajna yazdı
    Regression from commit 2b78f2cd (rhbz#988516:
    DOCX import: fix context stack when importing header/footer, 2014-03-05),
    though that just made an existing Writer layout problem visible.
    
    RTF/WW8/newer (drawingML) DOCX import doesn't have this problem, as those
    import pictures as sw graphics, not draw ones.
    
    <w10:wrap type="through"/> is normally mapped to our page wrap (as it uses
    "through" in the "not only wrap around, but also in the holes of the shape, if
    it has any" context, not in our "text should go through it, so no wrapping"
    one), but for some reason in this case (most probably due to the extreme large
    negative margins) Word handles the situation as our through, i.e. the text
    should not go to the second page, as it would normally happen with a "Word
    through" wrapping.
    
    Work around the strange situation by ignoring the wrapping request for extreme
    top margin values.
    
    (cherry picked from commit 37b5f1ed)
    
    Conflicts:
    	oox/source/vml/vmlshape.cxx
    	sw/qa/extras/ooxmlimport/ooxmlimport.cxx
    
    Change-Id: I20555b1fa7a769e20c40a3a5ff3873807403e937
    Reviewed-on: https://gerrit.libreoffice.org/20212Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
    Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
    d66df3d3
Adı
Son kayıt (commit)
Son güncelleme
..
core Loading commit data...
crypto Loading commit data...
docprop Loading commit data...
drawingml Loading commit data...
dump Loading commit data...
export Loading commit data...
helper Loading commit data...
mathml Loading commit data...
ole Loading commit data...
ppt Loading commit data...
shape Loading commit data...
token Loading commit data...
vml Loading commit data...