Bug 274512 - Anchored text boxes have wrong position (need to handle KoShape::TextRunAroundSide in anchors)
Summary: Anchored text boxes have wrong position (need to handle KoShape::TextRunAroun...
Status: VERIFIED FIXED
Alias: None
Product: calligrawords
Classification: Applications
Component: opendocument (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: Calligra Words Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-30 13:48 UTC by swathi
Modified: 2011-09-08 07:56 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Test data (15.22 KB, application/vnd.oasis.opendocument.text)
2011-05-30 13:48 UTC, swathi
Details
Screenshot in Open Office (159.64 KB, image/x-png)
2011-05-30 13:49 UTC, swathi
Details
Screenshot in Calligra Words (128.85 KB, image/x-png)
2011-05-30 13:49 UTC, swathi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description swathi 2011-05-30 13:48:35 UTC
Created attachment 60469 [details]
Test data

Version: git checkout 70e1b6e65bcc89bffdd1ba4c9903469827c2c213
        (Using KDE 4.5.5)                
     OS: Kubuntu 10.10
Test data is in ODT format which has four vertical text boxes in the 1st page.
Open the same document in Calligra Words, check the display text.

Expected outcome:
Content in the Text boxes should be displayed.

Actual outcome:
Text boxes are not displaying.
Please check the screenshots attached.
Frequency:
Always.
Comment 1 swathi 2011-05-30 13:49:18 UTC
Created attachment 60470 [details]
Screenshot in Open Office
Comment 2 swathi 2011-05-30 13:49:53 UTC
Created attachment 60472 [details]
Screenshot in Calligra Words
Comment 3 Sebastian Sauer 2011-05-31 17:40:45 UTC
Seems the reason is that our "After" word-wrapping for the textboxes are not
working as expected (not working at all). What we should do in that case is to
align the following textboxes to the ones before. But we don't try to align
them at all. So, my assumption is that we don't proper support After-wordwrap
yet in the textlayout-library.
Comment 4 Sebastian Sauer 2011-09-06 19:47:56 UTC
This bug-report showed 3 issues which are fixed now.

1. The positioning of the anchored objects. This was fixed with commit 3a1a5d2b34505d1cfef91eb9ce1525971406b2f7

2. The height of the anchored objects. This was fixed with commit 

3. The ordering of the anchored objects. This was fixed with 882fef3e997fad6eb896a214715fecb4601d3b24
Comment 5 swathi 2011-09-08 07:56:13 UTC
Verified in 7f3b5e93e14526497018a79e78124d20b3c53210.