Changing length of a line also changes line width (transform)

Bug #1269511 reported by pRototype
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Medium
Alvin Penner

Bug Description

Inkscape 0.48+devel r12832
Tested on Windows XP and Windows 7, same behaviour.

First of all: This behaviour is not a result of having activated "when scaling objects, scale the stroke width by same proportion". It is disabled.

Steps to reproduce:
* Preferences --> Behavior --> Transform --> Store transformation = Preserved
* Draw a straigt horisontal line with two nodes. Make it long.
* Activate selec/move tool, and select the line.
* Duplicate the line and place it close to the first one (so that any changes in line width will be easy to see).
* Use the select/move tool to make the duplicated line short
* Expected behavior is that the short line have the same width as the original line, but it have being wider. Also the stroke style --> Width property of the short line now doesn't match the width as it appear on schreen.

Last stable version (0.48.4) is not affected. A file created by r12832 where line thickness is displayed wrong will appear correct when opened in stable version of Inkscape.

Revision history for this message
su_v (suv-lp) wrote :

> * Preferences --> Behavior --> Transform --> Store transformation = Preserved
> (…)
> * Expected behavior is that the short line have the same width as the original line

Your expectation is wrong - Inkscape's new renderer renders the stroke width of the path with a preserved transformatio correctly in accordance with the SVG 1.1 specification (the older renderer in stable is wrong, bug #165715). Just view it with a current web browser …

Any special reason you change the preferences to keep transformations preserved (this is not the default setting)?

<off-topic>
Current trunk (tested with r12934) has a regression when reproducing the reported issue, but AFAICT at first sight that regression is not related to what pRototype reports here.
</off-topic>

Revision history for this message
su_v (suv-lp) wrote :

Or maybe I'm wrong and Inkscape should not (or differently) compensate the stroke width to keep it constant when scaling with preserved transforms, for this special case. I'll leave this one to the real experts to decide …

Revision history for this message
Alvin Penner (apenner) wrote :

@pRototype

>> Expected behavior is that the short line have the same width as the original line, but it have being wider.
- some changes have been made in rev 12964 and rev12993 that will affect the stroke width of horizontal and vertical lines. Could you re-test to see if this problem still exists?

>> Also the stroke style --> Width property of the short line now doesn't match the width as it appear on schreen.
- if you are using Preserved Transforms, then the visual linewidth you see on the screen may not match the XML style width property, you will have to multiply it by the appropriate transform element that is associated with this path.

Alvin Penner (apenner)
Changed in inkscape:
status: New → Incomplete
Revision history for this message
pRototype (regeir) wrote :

Hi.

I have just downloaded Inkscape 0.48+devel r13275, and it doesn't seems to be an issue any more.

However, as long as I keep down LMB and dragging the line, it thickness vary as I vary it's size. When I release LMB the line thickness resets to its original value.

I have select the setting "Store transformation" = Optimized.

Revision history for this message
Alvin Penner (apenner) wrote :

>> However, as long as I keep down LMB and dragging the line, it thickness vary as I vary it's size. When I release LMB the line thickness resets to its original value.

yes, this issue has been reported elsewhere, see Bug 1258271 and Bug 165727

the original issue, persistent change in linewidth, was fixed in rev 12964 . If there is no objection, I'm going to mark this as fix committted.

Changed in inkscape:
status: Incomplete → Fix Committed
su_v (suv-lp)
Changed in inkscape:
assignee: nobody → Alvin Penner (apenner)
importance: Undecided → Medium
milestone: none → 0.91
tags: added: transformations
Bryce Harrington (bryce)
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.