Stroke width not correctly remembered with mm as unit

Bug #1247801 reported by LucaDC
36
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Medium
Alvin Penner

Bug Description

I have problems when working with mm as default unit:
 - I draw a line with the path tool;
 - the thickness is large: I open the panel and set it to 1 mm;
 - I have "use last style" as preference for the tool;
 - when I draw a second path, its thickness is not the one just set, but 3,543 times larger and this is correctly reported in the fill and stroke dialog; of course, if I set the thickness to 2 mm I get 7,087 mm and so on.
This problem does not affect rectangles nor ellipses. Shift-ctrl copy styles works correctly also between different objects. Only newly drawn paths are affected.

Rev 12774.

Revision history for this message
LucaDC (lucadc) wrote :

Just a "ping", to have this bug not passing unnoticed as it's very similar to Bug #1247799.

jazzynico (jazzynico)
tags: added: regression styles
Revision history for this message
LucaDC (lucadc) wrote :

This bug is very annoying.
Anybody confirming it and/or suggesting a workaround till it's fixed?

su_v (suv-lp)
Changed in inkscape:
milestone: none → 0.49
Revision history for this message
jazzynico (jazzynico) wrote :

@Luca - I still can't reproduce your issue on Windows XP, Inkscape trunk 12840. There are other units related weirdnesses, but not exactly what you noticed.
Would you be willing to attach your template so that we can try to reproduce the bug?

Changed in inkscape:
status: New → Incomplete
importance: Undecided → Medium
Revision history for this message
LucaDC (lucadc) wrote :

Sure, here it is.
Good if you find a general fix, but if you have indications on how to modify my template to get rid of this problem I'd be happy to apply them.

Revision history for this message
jazzynico (jazzynico) wrote :

Not reproduced with the template from comment #4.

Could you please also attach you preferences.xml file? I have tested with "use last style" for the tool, but it could well be that the bug is linked to another preference.

Revision history for this message
LucaDC (lucadc) wrote :

Aha! You made me think about preferences and I caught it.
The problem lies in the "scale stroke width" option: turn it off (toolbar button not pressed) and you should see the problem.

Revision history for this message
jazzynico (jazzynico) wrote :

Reproduced on Crunchbang Waldorf, Inkscape trunk revision 12849, with "Scale stroke width" off.
Steps:
1. Open a template in mm (or the default EN template in px, and then change the default unit to mm).
2. Uncheck "Scale stroke width".
3. In the preferences of the Pencil tool, check "Use last style".
4. Draw a path with the pencil.
5. Set the path width to 1 mm.
6. Draw another path -> the width is 3.53 mm.
7. Set the path width to 1 px.
8. Draw another path -> the width is 3.53 px.

Changed in inkscape:
status: Incomplete → Triaged
su_v (suv-lp)
tags: added: units
su_v (suv-lp)
Changed in inkscape:
milestone: 0.91 → 0.92
su_v (suv-lp)
Changed in inkscape:
milestone: 0.92 → 0.91.1
Revision history for this message
Alvin Penner (apenner) wrote :

fix committed to rev 13735

Changed in inkscape:
status: Triaged → Fix Committed
assignee: nobody → Alvin Penner (apenner)
Revision history for this message
su_v (suv-lp) wrote :

@Alvin - the fix looks save to be backported to the 0.91.x release branch AFAICT. Can you confirm this?

Changed in inkscape:
milestone: 0.91.1 → 0.92
tags: added: backport-proposed
Revision history for this message
Alvin Penner (apenner) wrote :

yes, I think this would be quite safe to backport

Revision history for this message
ScislaC (scislac) wrote :

Tested and backported in 0.91.x r13653

tags: removed: backport-proposed
Changed in inkscape:
milestone: 0.92 → 0.91
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.

Duplicates of this bug

Other bug subscribers

Bug attachments

Remote bug watches

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