• Miklos Vajna's avatar
    fdo#87005 SwTxtFormatter::NewPortion: fix lost SwFlyPortion · 25c50ff9
    Miklos Vajna yazdı
    In case there are two flys anchored to the paragraph and it's empty,
    then the situation is that SwTxtFormatter::BuildPortions() calls
    NewPortion() two times, second time the SwTxtFormatInfo has no fly set
    initially, only after NewPortion() calls CalcFlyWidth(). When that
    happens, we used to return pPor, even in case it was 0, and we the
    SwTxtFormatInfo had a fly portion.
    
    Fix the problem by checking if SwTxtFormatInfo has a fly portion after
    CalcFlyWidth(), and in case otherwise we would return 0, return the fly
    portion of SwTxtFormatInfo instead. As a result, the paragraph delimiter
    in the bugdoc will be positioned at the correct position, as the
    SwTxtFrm will properly have two layout portions, just like non-empty
    SwTxtFrms.
    
    Change-Id: I51e5ba61e79b4353c7b11c6d76b8c370ac3d4d37
    25c50ff9
Adı
Son kayıt (commit)
Son güncelleme
..
EnhancedPDFExportHelper.cxx Loading commit data...
SwGrammarMarkUp.cxx Loading commit data...
atrhndl.hxx Loading commit data...
atrstck.cxx Loading commit data...
blink.cxx Loading commit data...
frmcrsr.cxx Loading commit data...
frmform.cxx Loading commit data...
frminf.cxx Loading commit data...
frmpaint.cxx Loading commit data...
guess.cxx Loading commit data...
guess.hxx Loading commit data...
inftxt.cxx Loading commit data...
inftxt.hxx Loading commit data...
itradj.cxx Loading commit data...
itratr.cxx Loading commit data...
itratr.hxx Loading commit data...
itrcrsr.cxx Loading commit data...
itrform2.cxx Loading commit data...
itrform2.hxx Loading commit data...
itrpaint.cxx Loading commit data...
itrpaint.hxx Loading commit data...
itrtxt.cxx Loading commit data...
itrtxt.hxx Loading commit data...
noteurl.cxx Loading commit data...
pordrop.hxx Loading commit data...
porexp.cxx Loading commit data...
porexp.hxx Loading commit data...
porfld.cxx Loading commit data...
porfld.hxx Loading commit data...
porfly.cxx Loading commit data...
porfly.hxx Loading commit data...
porftn.hxx Loading commit data...
porglue.cxx Loading commit data...
porglue.hxx Loading commit data...
porhyph.hxx Loading commit data...
porlay.cxx Loading commit data...
porlay.hxx Loading commit data...
porlin.cxx Loading commit data...
porlin.hxx Loading commit data...
pormulti.cxx Loading commit data...
pormulti.hxx Loading commit data...
porref.cxx Loading commit data...
porref.hxx Loading commit data...
porrst.cxx Loading commit data...
porrst.hxx Loading commit data...
portab.hxx Loading commit data...
portox.cxx Loading commit data...
portox.hxx Loading commit data...
portxt.cxx Loading commit data...
portxt.hxx Loading commit data...
possiz.hxx Loading commit data...
redlnitr.cxx Loading commit data...
redlnitr.hxx Loading commit data...
txtcache.cxx Loading commit data...
txtcache.hxx Loading commit data...
txtdrop.cxx Loading commit data...
txtfld.cxx Loading commit data...
txtfly.cxx Loading commit data...
txtfrm.cxx Loading commit data...
txtftn.cxx Loading commit data...
txthyph.cxx Loading commit data...
txtinit.cxx Loading commit data...
txtio.cxx Loading commit data...
txtpaint.cxx Loading commit data...
txtpaint.hxx Loading commit data...
txttab.cxx Loading commit data...
widorp.cxx Loading commit data...
widorp.hxx Loading commit data...
wrong.cxx Loading commit data...
xmldump.cxx Loading commit data...