Bug 280478

Summary: The „Cap“ and „Miter limit“ properties are not saved in ODG
Product: [Applications] karbon Reporter: Olaf Schmidt-Wischhöfer <olaf>
Component: generalAssignee: Jan Hambrecht <jaham>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 2.4-snapshots   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Image file
Screenshot before saving the image
Screenshot after loading the saved image file.
Saving as SVG keeps these proterties, not drops the shadow

Description Olaf Schmidt-Wischhöfer 2011-08-20 16:46:34 UTC
Created attachment 63006 [details]
Image file

Version:           2.4-snapshots (using KDE 4.7.0) 
OS:                Linux

Before I saved the attached image file, I changed the „Cap“ and „Miter limit“ settings. When I open the file again, then these values are set to different values.

Reproducible: Didn't try

Steps to Reproduce:
1. Load the attached ODG file
2. Select the shape named „Calligra“.
2. Set the miter limit to 0.
3. Set the cap to „Round Cap“
4. Save the file
5. Close the file.
6. Open the saved file.

Actual Results:  
The miter limit has changed to 2 pt.
The „Cap“ setting has changed to „Square Cap“ 

Expected Results:  
Both settings should be unchanged.

I don't think this is related to the bug, but just in case it helps: The image was originally created in Inkscape and then further edited in Karbon.
Comment 1 Olaf Schmidt-Wischhöfer 2011-08-20 16:47:02 UTC
Created attachment 63007 [details]
Screenshot before saving the image
Comment 2 Olaf Schmidt-Wischhöfer 2011-08-20 16:47:36 UTC
Created attachment 63008 [details]
Screenshot after loading the saved image file.
Comment 3 Olaf Schmidt-Wischhöfer 2011-08-20 16:52:55 UTC
Created attachment 63010 [details]
Saving as SVG keeps these proterties, not drops the shadow
Comment 4 Jan Hambrecht 2011-08-20 18:11:09 UTC
The miter limit is only relevant when setting the join style to miter. So if you have another join style set like in the attached file, the miter limit is not saved. It would probably a good idea to disable the miter limit edit control when another join style is set.
Comment 5 Jan Hambrecht 2011-08-20 18:35:37 UTC
Git commit 4683f38e1940d2587288d6f0d111287f3aa4337f by Jan Hambrecht.
Committed on 20/08/2011 at 20:35.
Pushed by jaham into branch 'master'.

disable miter limit edit control if join style is not set to miter join

CCBUG:280478

M  +3    -2    plugins/dockers/strokedocker/StrokeDocker.cpp
M  +1    -1    libs/widgets/KoStrokeConfigWidget.cpp

http://commits.kde.org/calligra/4683f38e1940d2587288d6f0d111287f3aa4337f
Comment 6 Jan Hambrecht 2011-08-20 18:35:37 UTC
Git commit 6c3d682944c6ade6c1f51c2c29708e28b479a13d by Jan Hambrecht.
Committed on 20/08/2011 at 20:16.
Pushed by jaham into branch 'master'.

Implement loading and saving of linecap attribute from/to odf.

The ODF 1.2 specification seems to finally also specfies a linecap
attribute for stroke styles. So lets support that in Calligra.

BUG:280478

M  +2    -0    libs/flake/KoShape.cpp
M  +24   -1    libs/odf/KoOdfGraphicStyles.cpp

http://commits.kde.org/calligra/6c3d682944c6ade6c1f51c2c29708e28b479a13d