Bug 283255

Summary: *.ora export and opacity issue
Product: [Applications] krita Reporter: David REVOY <info>
Component: File formatsAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: git master (please specify the git hash!)   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description David REVOY 2011-10-03 16:15:50 UTC
Version:           svn trunk
OS:                Linux

Mypaint and Gimp can't read back ora generated by Krita when using opacity slider on a layer ( layer panel , from 0% to 100% )


In the stack.xml of Krita :
 opacity="0,3019607843137255" 
In Mypaint or Gimp :
 opacity="0.648"
 opacity="0.6486078431"

so it seams to be a "," versus a "." issue for floating number. 
I'm surprised to never saw this bug before. I quite often use *.ora between the 3 ...






Reproducible: Didn't try


Actual Results:  
 

Expected Results:
Comment 1 Halla Rempt 2011-10-08 07:54:05 UTC
Git commit f805b432d7f6b386e8751a2120d8d4e4aed4dc60 by Boudewijn Rempt.
Committed on 08/10/2011 at 09:51.
Pushed by rempt into branch 'master'.

ORA: do not save opacity fraction using locale decimal separator

This would sometimes save opacity as 0,45 instead of 0.45 which
severly impairs interoperability.

BUG:283255

M  +1    -1    krita/ui/openrastertk/kis_open_raster_stack_save_visitor.cpp

http://commits.kde.org/calligra/f805b432d7f6b386e8751a2120d8d4e4aed4dc60
Comment 2 David REVOY 2011-10-08 10:19:04 UTC
Thanks for the fix !