Issue 36713 - draw should support custem svg:viewBox coordinate system when import graphics
Summary: draw should support custem svg:viewBox coordinate system when import graphics
Status: CLOSED FIXED
Alias: None
Product: Draw
Classification: Application
Component: programming (show other issues)
Version: 680m59
Hardware: All All
: P3 Trivial (vote)
Target Milestone: OOo 2.0
Assignee: wind.li
QA Contact: issues@graphics
URL:
Keywords: oooqa
Depends on:
Blocks: 2497 37210
  Show dependency tree
 
Reported: 2004-11-05 07:58 UTC by wind.li
Modified: 2008-05-18 12:47 UTC (History)
2 users (show)

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


Attachments
patch to support custom viewBox (1.44 KB, patch)
2004-11-05 08:06 UTC, wind.li
no flags Details | Diff
a test file from buerger@pik-potsdam.de (706 bytes, text/xml)
2004-11-05 09:03 UTC, wind.li
no flags Details
final patch (1.45 KB, patch)
2004-12-16 11:07 UTC, wind.li
no flags Details | Diff
bug doc in wordml format grabbed from i29597 (2.09 KB, application/x-compressed)
2004-12-16 11:09 UTC, wind.li
no flags Details
Hand-crafted OpenDocument that is imported incorrectly showing that the fix for this issue is not complete. (7.64 KB, application/vnd.oasis.opendocument.graphics)
2005-08-12 10:24 UTC, haui
no flags Details
Hand-crafted OpenDocument that is imported incorrectly showing that the fix for this issue is not complete. The file previously attached (by mistake) shows the normalized output when this file is saved again with OOdraw. (7.35 KB, application/vnd.oasis.opendocument.graphics)
2005-08-12 10:27 UTC, haui
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description wind.li 2004-11-05 07:58:49 UTC
I had just created an xslt filter for svg files. See
http://qa.openoffice.org/issues/show_bug.cgi?id=2497 . I found out that in sd
file format viewBox always use mm/100 as its unit. And I found that the
translate logic is already in our import code, so I create this patch to enable it.
Comment 1 wolframgarten 2004-11-05 08:00:10 UTC
Reassigned to Sven. Please have a look.
Comment 2 wind.li 2004-11-05 08:06:51 UTC
Created attachment 18955 [details]
patch to support custom viewBox
Comment 3 wind.li 2004-11-05 09:03:59 UTC
Created attachment 18957 [details]
a test file from  buerger@pik-potsdam.de
Comment 4 sven.jacobi 2004-11-05 09:44:16 UTC
reassigned to the owner of the svg project
Comment 5 ooo 2004-11-05 09:55:47 UTC
the patch is related to our XML related code in xmloff, so that the correct person
to verify the patch is Christian.
Comment 6 wind.li 2004-11-16 02:01:07 UTC
Christian, do you mind if I take this issue and checkin the patch into cws
svgxslt01?
Comment 7 wind.li 2004-12-15 10:43:12 UTC
I will fix it in wordmlfilter01
Comment 8 wind.li 2004-12-15 10:43:46 UTC
start
Comment 9 wind.li 2004-12-15 10:47:58 UTC
.
Comment 10 wind.li 2004-12-16 11:07:22 UTC
Created attachment 20574 [details]
final patch
Comment 11 wind.li 2004-12-16 11:09:36 UTC
Created attachment 20575 [details]
bug doc in wordml format grabbed from i29597
Comment 12 wind.li 2004-12-17 07:27:44 UTC
fixed in wordmlfilter01
Comment 13 wind.li 2004-12-20 03:59:35 UTC
reopen to reassign
Comment 14 wind.li 2004-12-20 04:00:13 UTC
assign to qa
Comment 15 wind.li 2004-12-20 05:15:17 UTC
fixed in wordmlfilter01
Comment 16 jack.warchold 2005-01-03 14:37:32 UTC
seen good in cws wordmlfilter01
set to verified
Comment 17 jack.warchold 2005-02-02 13:42:26 UTC
seen in src680_76 -> closing
Comment 18 clippka 2005-02-03 13:44:54 UTC
Nice, this issue caused a regression and a beta showstopper.
With the fix in unoshape.cxx, importing of shapes is completly wrong in impress
and draw application and I also suspect its wrong in all other applications.

Why was that not tested??
Why was this patch checked in without my aproval?

I will undo the changes in unoshape.cxx with beta showstopper issue 41966.
So this fix will be reopened and hast to be done again, this time working please!
Comment 19 clippka 2005-02-03 13:46:04 UTC
back to developer
Comment 20 clippka 2005-02-03 13:56:15 UTC
fixed but failr, horrible
Comment 21 wind.li 2005-02-16 04:24:11 UTC
reopen
Comment 22 wind.li 2005-02-16 05:32:49 UTC
Hi,Christian
According to your comments, I think we are talking about i37213. This patch only
effect xmloff/source/draw/ximpshap.cxx. 
And the test documents for issue 41966 do not use svg:viewbox.
Could I close this issus and reopen i37213?
Comment 23 wind.li 2005-02-16 10:01:19 UTC
reopen by mistake
Comment 24 haui 2005-08-12 10:24:33 UTC
Created attachment 28683 [details]
Hand-crafted OpenDocument that is imported incorrectly showing that the fix for this issue is not complete.
Comment 25 haui 2005-08-12 10:27:56 UTC
Created attachment 28685 [details]
Hand-crafted OpenDocument that is imported incorrectly showing that the fix for this issue is not complete. The file previously attached (by mistake) shows the normalized output when this file is saved again with OOdraw.
Comment 26 haui 2005-08-12 10:48:14 UTC
This issue is not yet resolved completely. The status and resolution should be
cleared.

The code for viewBox normalization shows a defect, if either the width or height
of the graphics element is zero. This happens, if (e.g.) a path describes a
horizontal or vertical line. In that case, the values of the svg:d attribute are
still considered to be in 1/100mm units. 

The document test-viewbox-handling.odg (attached above) shows this behavior for
a set of horizontal and vertical lines. When saving the imported document,
viewbox normalization only occurred correctly for shapes that have both a
non-zero width and height. The horizontal and vertical lines are converted into
draw:line elements with incorrect length. The file
test-viewbox-handling-output.odg, which is also attached above, shows the output
from OOdraw m122.

A fix for this issue is important, because it would ease SVG import, if no
viewbox normalization had to be done externally.
Comment 27 ace_dent 2008-05-18 12:04:27 UTC
The Patch you submitted has been marked as 'Resolved' and not updated within the
last 2 years+. I am therefore setting this issue to 'Verified' as the first step
towards Closing it. If you feel this is incorrect, please re-open the issue and
add any comments.

Many thanks,
Andrew
 
Cleaning-up and Closing old Issues as part of:
~ The Grand Bug Squash, pre v3 ~
http://marketing.openoffice.org/3.0/announcementbeta.html
Comment 28 ace_dent 2008-05-18 12:08:42 UTC
The Patch you submitted has been marked as 'Resolved' and not updated within the
last 2 years+. I am therefore setting this issue to 'Verified' as the first step
towards Closing it. If you feel this is incorrect, please re-open the issue and
add any comments.

Many thanks,
Andrew
 
Cleaning-up and Closing old Issues as part of:
~ The Grand Bug Squash, pre v3 ~
http://marketing.openoffice.org/3.0/announcementbeta.html
Comment 29 ace_dent 2008-05-18 12:47:53 UTC
As per previous comment: Verified > Closed.

Regards,
Andrew