Issue 37500 - scale not working on draw:path
Summary: scale not working on draw:path
Status: CLOSED DUPLICATE of issue 37213
Alias: None
Product: Draw
Classification: Application
Component: open-import (show other issues)
Version: OOo 2.0
Hardware: All Linux, all
: P4 Trivial (vote)
Target Milestone: OOo 2.0
Assignee: Armin Le Grand
QA Contact: issues@graphics
URL:
Keywords:
Depends on:
Blocks: 37210
  Show dependency tree
 
Reported: 2004-11-20 23:12 UTC by niendo
Modified: 2005-03-23 10:20 UTC (History)
1 user (show)

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


Attachments
the result, bezier curve is not scaled (5.52 KB, image/gif)
2004-11-20 23:21 UTC, niendo
no flags Details
manual changed ood file (6.82 KB, application/vnd.sun.xml.draw)
2004-11-20 23:22 UTC, niendo
no flags Details
a new test case... (9.63 KB, application/vnd.sun.xml.draw)
2004-12-24 00:43 UTC, niendo
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description niendo 2004-11-20 23:12:33 UTC
Hi, 
 
I'm using 1.9.62 under linux. 
It seems that the commando draw:transform="scale (x y)" will not work on 
draw:path. 
 
I added the following lines: 
    <draw:path draw:style-name="gr1" draw:text-style-name="P1" 
draw:layer="layout" svg:width="5.501cm" svg:height="5.001cm" svg:x="4.847cm" 
svg:y="11.347cm" svg:viewBox="0 0 5501 5001" svg:d="m2500 0c3000 5000-2500 
3500-2500 3500"/> 
    <draw:rect draw:style-name="gr2" draw:text-style-name="P1" 
draw:layer="layout" svg:width="5.501cm" svg:height="3.501cm" svg:x="8.347cm" 
svg:y="4.347cm"/> 
    <draw:path draw:style-name="gr1" draw:text-style-name="P1" 
draw:layer="layout" svg:width="5.501cm" svg:height="5.001cm" svg:x="4.847cm" 
svg:y="11.347cm" svg:viewBox="0 0 5501 5001" svg:d="m2500 0c3000 5000-2500 
3500-2500 3500" draw:transform="scale (2 2) rotate (0.6)"/> 
    <draw:rect draw:style-name="gr2" draw:text-style-name="P1" 
draw:layer="layout" svg:width="5.501cm" svg:height="3.501cm" svg:x="8.347cm" 
svg:y="4.347cm" draw:transform="scale (2 2) rotate (0.6)"/> 
 
The rectangels a scaled and rotated correctly the bezier curve is only rotated 
and not scaled. 
It doesnt matter using sxd or ood format. 
 
It would be much easier to import SVG drawings using this feature instead to 
scale the svg:d via xslt filter. 
 
For the filter see: http://www.openoffice.org/issues/show_bug.cgi?id=2497
Comment 1 niendo 2004-11-20 23:21:08 UTC
Created attachment 19518 [details]
the result, bezier curve is not scaled
Comment 2 niendo 2004-11-20 23:22:48 UTC
Created attachment 19519 [details]
manual changed ood file
Comment 3 wolframgarten 2004-11-22 07:52:00 UTC
Reassigned to Kai. Please have a look.
Comment 4 ooo 2004-11-23 10:10:42 UTC
file format issue
Comment 5 ooo 2004-11-24 13:34:50 UTC
reassigned
Comment 6 clippka 2004-12-01 12:50:23 UTC
Armin, I think this fits best in your expirience. But I would not consider this
a OOo 2.0 issue
Comment 7 ooo 2004-12-01 16:39:02 UTC
set to prio4
Comment 8 Armin Le Grand 2004-12-08 09:40:31 UTC
.
Comment 9 niendo 2004-12-24 00:43:26 UTC
Created attachment 20821 [details]
a new test case...
Comment 10 Armin Le Grand 2005-03-23 10:18:38 UTC
AW: No, it's not scaled, please look at #i37213# which this one is double to.
The x,y,width and height of the shape define the shape's size, so there is no
way to get the content scaled when the object is not. Plese refer to the double bug.

*** This issue has been marked as a duplicate of 37213 ***
Comment 11 Armin Le Grand 2005-03-23 10:20:08 UTC
AW: Closing due to duplicate