Kaydet (Commit) b4f775da authored tarafından Luboš Luňák's avatar Luboš Luňák

fix image dragging inside a document

Testcase is a document with a table and a wrap-through anchored-to-character
image below it. Dragging the image up to be anchored to a place in a cell
and positioned partially on top of the table does not actually change
the image position if the image was below the table before the drag,
but changes when the table was above. In the faulty case,
SwToCntntAnchoredObjectPosition::CalcPosition() returns prematurely
because of paragraph portion information not existing at that point
(interestingly, the problem is also fixed simply by commenting out the return).

This basically reverts 9b87346b . I'm unable
to check the original problem as the bugreport references a web page that
no longer exists. So if that one still exists, it'll need to be handled
whenever somebody runs into a way of reproducing it.

Change-Id: Id354237dace3179b94768146ec1a599cc3d49146
üst 71505177
......@@ -204,11 +204,7 @@ void SwToCntntAnchoredObjectPosition::CalcPosition()
!GetAnchoredObj().GetLastCharRect().Width() ) ||
!GetAnchoredObj().GetLastTopOfLine() )
{
// #i111886#
// Check existence of paragraph portion information in order
// to avoid formatting which could cause deletion of follow frames.
GetAnchoredObj().CheckCharRectAndTopOfLine();
GetAnchoredObj().CheckCharRectAndTopOfLine( false );
// Due to table break algorithm the character
// rectangle can have no height. Thus, check also the width
if ( ( !GetAnchoredObj().GetLastCharRect().Height() &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment