Issue 93417 - SVG image severely corrupted directly after inserting
Summary: SVG image severely corrupted directly after inserting
Status: CONFIRMED
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: OOo 2.4.1
Hardware: PC Linux, all
: P3 Minor with 2 votes (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
: 124060 (view as issue list)
Depends on:
Blocks:
 
Reported: 2008-09-03 10:58 UTC by tuharsky
Modified: 2017-05-20 10:45 UTC (History)
7 users (show)

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


Attachments
test case -image (6.10 KB, image/svg)
2008-09-03 11:00 UTC, tuharsky
no flags Details
screenshot -image screwed (84.17 KB, image/png)
2008-09-03 13:19 UTC, tuharsky
no flags Details
Document that uses SVG arrows. The printed result is correct but no the display while editing (see the arrow lines in the left column). (13.36 KB, application/vnd.oasis.opendocument.text)
2008-12-28 00:45 UTC, odalman
no flags Details
the original SVG file with all clones unlinked by Inkscape (8.83 KB, text/plain)
2009-03-31 05:30 UTC, majonis_joshua
no flags Details
Screenshot of the SVG image without clones imported to writer (62.77 KB, text/plain)
2009-03-31 05:31 UTC, majonis_joshua
no flags Details
Screenshot of the SVG image without clones imported to writer (53.17 KB, image/png)
2009-03-31 09:03 UTC, odalman
no flags Details
Inkscape vs. Writer (164.99 KB, image/png)
2014-02-16 17:27 UTC, Edwin Sharp
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description tuharsky 2008-09-03 10:58:43 UTC
Insert the SVG image into document and You can immediately see a severe deformation.
Comment 1 tuharsky 2008-09-03 11:00:19 UTC
Created attachment 56186 [details]
test case -image
Comment 2 Rainer Bielefeld 2008-09-03 12:59:06 UTC
I opened "buddy02.svg" with "2.4.1  Multilingual version German UI WIN XP:
[680m17(Build9310)]" DRAW and did not see anything unexpected

@tuharsky:
Pls. read my comments in Issue 93418 and explain what "Insert the SVG image into
document" means (step by step instruction ...!)
PDF settings. Screenshot with damaged image view might be helpful.
What Linux distribution / Version do you use? OOo from what source?
Comment 3 tuharsky 2008-09-03 13:17:25 UTC
Well.
1, Run the Writer. You see a blank text document now.
2, Insert -> Image -> From file
3, Select the SVG file

Now You can see the image inserted into document. Look at the screenshot.
Comment 4 tuharsky 2008-09-03 13:19:54 UTC
Created attachment 56196 [details]
screenshot -image screwed
Comment 5 tuharsky 2008-09-03 13:21:57 UTC
OOo from Ubuntu 8.04 Hardy
version: 2.4.1-1ubuntu2
Comment 6 odalman 2008-12-27 02:47:33 UTC
Bug confirmed with Gentoo package app-office/openoffice-2.4.1.
Comment 7 odalman 2008-12-27 11:29:49 UTC
Bug confirmed with Gentoo package app-office/openoffice-3.0.0.
Comment 8 odalman 2008-12-28 00:45:00 UTC
Created attachment 59027 [details]
Document that uses SVG arrows. The printed result is correct but no the display while editing (see the arrow lines in the left column).
Comment 9 majonis_joshua 2009-03-31 05:28:52 UTC
I was able to replicate this issue using biohazard_01.svg with Ubuntu 8.10 and
Open Office version 2.4.1-1ubuntu2.

Opening the sample test case with Inkscape (version 0.46, Ubuntu 8.10) I notice
that some objects are clones of an original within the image. I think this bug
may be a problem with how Open Office imports cloned objects in an SVG image.
After unlinking all clones (In Inkscape: Edit|Select All --> Toolbar|Unlink
Clone) I was able to create an SVG which imports correctly into writer. 
Comment 10 majonis_joshua 2009-03-31 05:30:30 UTC
Created attachment 61295 [details]
the original SVG file with all clones unlinked by Inkscape
Comment 11 majonis_joshua 2009-03-31 05:31:26 UTC
Created attachment 61296 [details]
Screenshot of the SVG image without clones imported to writer
Comment 12 odalman 2009-03-31 09:03:43 UTC
Created attachment 61306 [details]
Screenshot of the SVG image without clones imported to writer
Comment 13 Olaf Felka 2009-04-28 07:01:26 UTC
@ wg: Please have a look.
Comment 14 Rob Weir 2013-02-02 02:58:57 UTC
This Issue requires more information ('needmoreinfo'), but has not been updated
within the last year. Please provide feedback as requested and re-test with the the latest version of OpenOffice - the problem(s) may already be addressed. 

You can download Apache OpenOffice 3.4.1 from http://www.openoffice.org/download

Please report back the outcome of your testing, so this Issue may be closed or
progressed as necessary - otherwise the issue may be Resolved as Invalid in the
future.
Comment 15 Edwin Sharp 2014-02-16 17:27:51 UTC
Created attachment 82597 [details]
Inkscape vs. Writer

Inkscape 0.48
AOO410m1(Build:9750)  -  Rev. 1566800
2014-02-11_04:11:01 - Rev. 1566981
Debian
Comment 16 Edwin Sharp 2014-02-16 17:29:47 UTC
Not a severe deformation, but white lines that affect the image.
Comment 17 Armin Le Grand 2014-02-17 17:04:41 UTC
This is due to system-specific Linux stuff - the Anitliased filled Polygons do not add nicely at their edges to fully filled pixels. There was another task existing for this...
It means that TryDrawPolyLineDirect in vcl does return success, else RenderPolygonStrokePrimitive2D would be used. In the case the decomposition to filled polygons is used there is a fallback in PRIMITIVE2D_ID_POLYPOLYGONCOLORPRIMITIVE2D that additionally paints the decomposed polygons as hairlines when in AAed mode to fill those gaps.
This is probably also needed in X11SalGraphics::drawPolyLine. Adding Herbert to CC...
@Herbert: X11SalGraphics::drawPolyLine needs also to paint the original polygon as non-filled hairline when AA is on to ensure fill of the AA-gaps when the polygons are parts of a qide line output.
Comment 18 Armin Le Grand 2014-03-27 14:20:05 UTC
*** Issue 124060 has been marked as a duplicate of this issue. ***
Comment 19 Marcus 2017-05-20 10:45:14 UTC
Reset the assignee to the default "issues@openoffice.apache.org".