https://bugs.kde.org/show_bug.cgi?id=454812

            Bug ID: 454812
           Summary: inconsistent return value for setColorSpace and
                    setColorProfile
           Product: krita
           Version: 5.0.2
          Platform: Mint (Ubuntu based)
                OS: Linux
            Status: REPORTED
          Severity: minor
          Priority: NOR
         Component: Scripting
          Assignee: krita-bugs-n...@kde.org
          Reporter: luuk.kouij...@gmail.com
  Target Milestone: ---

SUMMARY
setColorSpace returns True if an invalid color profile is used
setColorProfile returns False if an invalid color profile is used

STEPS TO REPRODUCE
1. use setColorSpace with invalid color profile, setColorSpace( "CMYKA", "U8",
"FOGRA39L_coated.icc")
2. use setColorProfile with invalid color profile, setColorProfile(
"FOGRA39L_coated.icc")
3. 

OBSERVED RESULT
1 returns True
2 returns False

EXPECTED RESULT
1 returns False
2 returns False


SOFTWARE/OS VERSIONS
Qt 5.12.8 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC
9.3.0) on "xcb" 
OS: Linux Mint 20.3 [linux version 5.13.0-44-generic]

ADDITIONAL INFORMATION
If an invalid color profile is used the function setColorSpace in the scripter
it should return False just like setColorProfile. 
The checks from setColorProfile should be added to setColorSpace.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to