Apache OpenOffice (AOO) Bugzilla – Issue 3317
para anchored graphics do not cause
Last modified: 2013-08-07 14:41:36 UTC
In the attached .sxw example there is a section with two columns, a graphic is anchored to a para in column one and positioned over text in column two and the text underneath wraps around the graphic as expected. There is another graphic anchored to a paragraph in column two and positioned over text in column one. The text underneath does not wrap around the graphic.
Created attachment 1145 [details] example .sxw
It's a small step in the writer core but a great step in writer behaviour. At the moment a paragraph ignores all frames which are anchored at following paragraphs. If I change this, I'll get endless loops in many cases. The paragraph grows, moves the next paragraphs, so the frame has to be positioned again, the first paragraphs could shrink again and so on. Before I fix this bug I have to implement an algorithm to avoid these loops.
Let's try it.
OD (05.09.2003): accepted. the above mentioned non-looping layout has also to be implemented, if objects can be negative positioned (ms_interoperability).
.
fix in progress in cws swqbugfixes06
The wrapping of text around 'negative' positioned floating screen objects (Writer fly frames and drawing objects) will be enabled. (Note: 'negative' means, that the position of the floating screen object is according to the text flow before its anchor.) This can potentially cause loops in the layout process. Thus, if such a loop is detected, temporarly the 'straightforward positioning process' - specified in specification 'Positioning of floating screen objects with considering its wrapping style', found at http://specs.openoffice.org/writer/compatibility/obj-pos-without-wrapping.sxw - is applied for the floating screen object causing such a loop.
fixed in cws swqbugfixes06 - changed files: /sw/source/core/text/txtfly.cxx, 1.47.6.1 /sw/source/core/layout/frmtool.cxx, 1.66.6.1 /sw/inc/anchoredobject.hxx, 1.4.8.2 /sw/source/core/layout/anchoredobject.cxx, 1.4.6.1 /sw/source/core/layout/anchoreddrawobject.cxx, 1.3.6.4 /sw/source/core/layout/flycnt.cxx, 1.41.6.2 /sw/source/core/layout/fly.cxx, 1.63.6.2 /sw/source/core/layout/layact.cxx, 1.43.6.2 /sw/source/core/layout/objectformattertxtfrm.cxx, 1.2.6.1 /sw/source/core/layout/wsfrm.cxx, 1.58.6.1
reopen to assign to QA
OD->MRU: Checked in internal installation set of cws swqbugfixes06 - please verify.
set status back to FIXED
Verified in swqbugfixes06.
MRU: checked integration in 680m56.