Bug 274512

Summary: Anchored text boxes have wrong position (need to handle KoShape::TextRunAroundSide in anchors)
Product: [Applications] calligrawords Reporter: swathi <swathi.vegesna999>
Component: opendocumentAssignee: Calligra Words Bugs <calligra-words-bugs-null>
Status: VERIFIED FIXED    
Severity: normal CC: mail, sebsauer
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Test data
Screenshot in Open Office
Screenshot in Calligra Words

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.