Bug 283255 - *.ora export and opacity issue
Summary: *.ora export and opacity issue
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: File formats (show other bugs)
Version: git master (please specify the git hash!)
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-03 16:15 UTC by David REVOY
Modified: 2011-10-08 10:19 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 !