Issue 75962 - WW8: export picture crop with minus value
Summary: WW8: export picture crop with minus value
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: save-export (show other issues)
Version: OOo 2.0.4
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-31 15:09 UTC by ergosoft
Modified: 2013-08-07 14:38 UTC (History)
2 users (show)

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


Attachments
sample document (559.64 KB, application/vnd.sun.xml.writer)
2007-03-31 15:10 UTC, ergosoft
no flags Details
patch (803 bytes, text/plain)
2007-03-31 15:11 UTC, ergosoft
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description ergosoft 2007-03-31 15:09:21 UTC
if picture crop is minus value,
exported ".doc" file is not opened normally by Microsoft Word.

1. Make new text document.
2. Add picture.
3. Show "Picture" dialog and show "Crop" tab.
4. Set "Left" to "-100".
5. Save "Microsoft Word 97/2000/XP (.doc)"
Comment 1 ergosoft 2007-03-31 15:10:18 UTC
Created attachment 44099 [details]
sample document
Comment 2 ergosoft 2007-03-31 15:11:11 UTC
Created attachment 44100 [details]
patch
Comment 3 ergosoft 2007-03-31 15:17:33 UTC
SwBasicEscherEx::ToFract16  (source/filter/ww8/wrtw8esh.cxx)

(nVal / 65536) cast to UINT32 by compiler (arithmetic conversion).
Comment 4 michael.ruess 2007-04-03 12:54:03 UTC
MRU->HBRINKM: graphics having a negative value for cropping will be exported
wrongly to WW8 format. Maybe attached patch could solve this.
This could also be related to issue 60335 and issue 75556.
Comment 5 openoffice 2007-04-04 09:34:56 UTC
Evaluating
Comment 6 openoffice 2007-04-11 10:26:33 UTC
Created document with cropped picture like described above and saving as .doc
with patched office. Opening .doc in Word 2007 shows scrambled image.
Comment 7 Mathias_Bauer 2007-05-14 09:14:21 UTC
Henning, so does that mean that the patch doesn't work?
Comment 8 openoffice 2007-05-15 11:47:46 UTC
ergosoft: please review the patch
Comment 9 Mathias_Bauer 2007-06-06 11:37:11 UTC
ergosoft: any news on that?
hbrinkm: can you please attach a test document?
Comment 10 Mathias_Bauer 2007-06-27 12:02:15 UTC
ergosoft: any news on this?
Comment 11 pavel 2007-08-02 12:42:27 UTC
ergosoft: ok, not that important for you, no duplicates, thus moving target.
Comment 12 Mathias_Bauer 2007-09-05 22:56:05 UTC
As the patch obviously doesn't work and due to inactivity of the submitter I
think we can treat the patch as invalid. As the bug of course is still present I
set the type to "Defect".
Comment 13 Rob Weir 2013-07-30 02:17:58 UTC
Reset assignee on issues not touched by assignee in more than 2000 days.