Issue 102238 - Contour text wrap from O-O v3.0 file fails in O-O v3.1
Summary: Contour text wrap from O-O v3.0 file fails in O-O v3.1
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: formatting (show other issues)
Version: OOO310m9
Hardware: Unknown Windows XP
: P3 Trivial (vote)
Target Milestone: 3.4.0
Assignee: eric.savary
QA Contact: issues@sw
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2009-05-25 23:11 UTC by nigelharpur
Modified: 2017-05-20 10:30 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Zip containing ODT Doc page and TIF file to link to. (943.70 KB, application/x-compressed)
2009-05-26 21:31 UTC, nigelharpur
no flags Details
\in_3.0.JPG (86.61 KB, image/jpeg)
2009-05-26 22:47 UTC, eric.savary
no flags Details
open.JPG (104.85 KB, image/jpeg)
2009-05-26 22:48 UTC, eric.savary
no flags Details
after_save_reload.JPG (78.71 KB, text/plain)
2009-05-26 22:48 UTC, eric.savary
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description nigelharpur 2009-05-25 23:11:12 UTC
A text document created using Writer in Open Office 3.0 with a linked picture
inserted and the Contour Text Wrap feature in use, does not work correctly in
Open Office 3.1

Initially no contour wrap is shown at all, but after some (unfortunately
increasingly random) clicking around the picture properties tabs it does show
"some" contour wrap but not at all as it was displayed in 3.0

After clearing the contour completely and creating a new contour map, 3.1
briefly displays text wrap correctly. However scrolling away and back is all it
takes to cause the text wrap to fail again.

My only solution was to revert to 3.0 as my text document has a way to go yet.
Am not sure of exact version number of 3.1 as have uninstalled - was downloaded
on 25th May 2009 at around 12 noon U.K. time.
Comment 1 eric.savary 2009-05-26 08:24:56 UTC
Please attach a sample document.
Comment 2 michael.ruess 2009-05-26 13:45:27 UTC
Cannot confirm with my sample files. As ES already mentioned, please attach your
sample to this issue.
Comment 3 nigelharpur 2009-05-26 21:31:38 UTC
Created attachment 62549 [details]
Zip containing ODT Doc page and TIF file to link to.
Comment 4 nigelharpur 2009-05-26 21:35:10 UTC
Have uploaded a zip file containing the page with the problem and the image
itself. Obviously the path to the image will need editing in the picture
properties dialogue box. Hope this helps.
Comment 5 eric.savary 2009-05-26 22:47:14 UTC
@MBA/OD: something seems to be definitively broken since 3.0.

I'll attach screenshots:
- in_3.0.JPG: how it used to look like in 3.0
- open.JPG: how it looks like when opening in a current (m8/m11/m48) version (BUG).
- after_save_reload.JPG: how it looks like after: 1) Editing contour,
auto-contour 2) saving in those versions (BUG).
Comment 6 eric.savary 2009-05-26 22:47:54 UTC
Created attachment 62550 [details]
\in_3.0.JPG
Comment 7 eric.savary 2009-05-26 22:48:23 UTC
Created attachment 62551 [details]
open.JPG
Comment 8 eric.savary 2009-05-26 22:48:52 UTC
Created attachment 62552 [details]
after_save_reload.JPG
Comment 9 eric.savary 2009-05-26 22:50:00 UTC
Reassigned
Comment 10 Oliver-Rainer Wittmann 2009-05-28 09:41:16 UTC
Investigation reveals the following:
- OOo somehow gets in trouble, because the size of the graphic does not seem to
be consistently stored in the graphic's file format respectively consistently
imported by OOo:
-- Open the given document in OOo 3.0
-- Enlarge the page size to 30cm x 30cm
-- Open the graphic's dialog
-- On pane "Type" hit button "Original Size"
---> graphic size is set to 28,73cm x 22,03cm
-- On pane "Crop" look at original size given above button "Original Size"
---> graphic size is 17,24cm x 13,21cm

I saved the graphic with MS Paint and used this saved graphic to create a new
text document in OOo 3.0. This text document looks fine in OOo 3.1
I also saved the graphic with GIMP and used this saved graphic to create a new
text document in OOo 3.0. This text document looks wrong in OOo 3.1

Further investigation together with some graphic experts is needed.

BTW, the storing of the contour for graphics in TIFF file format seems to be
completely broken. Try to create a text document with a graphic in TIFF file
format in OOo 3.1 from scratch and you will see after a save-and-reload cycle.
Comment 11 Mathias_Bauer 2009-06-02 15:39:59 UTC
Please take over
Comment 12 Oliver-Rainer Wittmann 2009-09-10 14:38:34 UTC
Unfortunately, I have to re-target this issue to the next release due to limited
resources.
Comment 13 Oliver-Rainer Wittmann 2009-12-10 10:08:36 UTC
Due to limited resources it is not clear if this issue can be solved in OOo 3.3.
To be honest I am adjusting the target.
Comment 14 Oliver-Rainer Wittmann 2011-03-16 16:51:19 UTC
fixed in cws sw34bf05 - changed file:
/sw/source/core/docnode/ndnotxt.cxx,
change set http://hg.services.openoffice.org/cws/sw34bf05/rev/d5359c669392

defect causes:
- In case that the contour polypolygon is stored in pixel unit and the graphic's unit is not pixel, the conversion of the contour does not consider the graphic's resolution.
- In case that the contour polypolygon has been retrieved for the UNO-API - e.g. for ODF export - the needed conversion to 100th mm unit was wrong.
Comment 15 openoffice 2011-03-18 11:34:44 UTC
fix reviewed by hbrinkm
Comment 16 Oliver-Rainer Wittmann 2011-03-21 09:31:25 UTC
od->es: Checked in internal installation set of cws sw34bf05 - please verify.
Comment 17 michael.ruess 2011-03-23 12:52:51 UTC
Verified fix in CWS sw34bf05.