You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2012/01/31 21:06:47 UTC

DO NOT REPLY [Bug 118859] New: sw: Incorrect text wrapping around drawing shapes (depending on zoom level)

https://issues.apache.org/ooo/show_bug.cgi?id=118859

             Bug #: 118859
        Issue Type: DEFECT
           Summary: sw: Incorrect text wrapping around drawing shapes
                    (depending on zoom level)
    Classification: Application
           Product: Word processor
           Version: OOo 3.4 Beta
          Platform: PC
        OS/Version: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: P5
         Component: code
        AssignedTo: ooo-issues@incubator.apache.org
        ReportedBy: openoffice@schierla.de


Created attachment 77180
  --> https://issues.apache.org/ooo/attachment.cgi?id=77180
Patch to fix the problem in LibreOffice

When using a drawing shape with contour page wrapping, the text is wrapped
around a "virtual object" left or right of the shape after changing zoom level
and entering page preview (or printing / PDF export).

Steps to reproduce: 
1. Add some text to a writer document
2. Draw a rectangle somewhere (right half of page) on the text
3. Switch the rectangle's wrapping to page wrap (this will automatically enable
contour wrapping)
4. Zoom out a bit (make sure the entire page width is visible, and the page is
centered)
5. Switch to page preview

Expected result:
Text wraps around the rectangle

Actual Result: 
Text wraps around a white space left of the rectangle


This is caused by a missing call to ClrContourCache( pObj ) in
    /sw/source/core/layout/pagechg.cxx:
    void lcl_MoveAllLowerObjs( SwFrm* pFrm, const Point&  rOffset )
in the
    else if ( pAnchoredObj->ISA(SwAnchoredDrawObject) )
case (in the if case, pFlyFrm->NotifyDrawObj() calls ClrContourCache).

The attached patch was created for LibreOffice, but the affected code in OOo
looks unchanged.

-- 
Configure bugmail: https://issues.apache.org/ooo/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 118859] sw: Incorrect text wrapping around drawing shapes (depending on zoom level)

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=118859

--- Comment #1 from openoffice@schierla.de 2012-01-31 20:09:20 UTC ---
This patch will likely also fix bug 100684.

-- 
Configure bugmail: https://issues.apache.org/ooo/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

[Bug 118859] sw: Incorrect text wrapping around drawing shapes (depending on zoom level)

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=118859

openoffice@schierla.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #2 from openoffice@schierla.de ---
Duplicate of bug 100684

*** This bug has been marked as a duplicate of bug 100684 ***

-- 
You are receiving this mail because:
You are the assignee for the bug.