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

            Bug ID: 412062
           Summary: Empty swatches in palette are replaced by black on
                    reloading krita.
           Product: krita
           Version: nightly build (please specify the git hash!)
          Platform: MS Windows
                OS: MS Windows
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Usability
          Assignee: krita-bugs-n...@kde.org
          Reporter: kaj.s...@gmail.com
  Target Milestone: ---

Created attachment 122724
  --> https://bugs.kde.org/attachment.cgi?id=122724&action=edit
krita palette to reproduce the above mentioned swatch bug

SUMMARY
(git714a51bdd0)

With a specific palette (attached), some swatches left open(empty/blank/no
color) are replaced by black, nameless swatches on re-opening krita.

Noticed this shortly after updating to the nightly-stable build(git714a51bdd0)
from the 4.2.6 release.

STEPS TO REPRODUCE
1. load palette 'basic_4' (attached)
2. in the palette, delete some of (as many as you like) the black swatches in
the top 2 rows of the 'Col' group so that they are empty.
3. close and re-open krita.

OBSERVED RESULT
The swatches previously deleted are now occupied with black(0/0/0).
These 'new' black swatches have no ID or Swatch Group Name.
Empty swatches on the bottom of the palette are not 'filled' this way.

EXPECTED RESULT
expected the empty swatches to stay empty.

SOFTWARE/OS VERSIONS
Windows:
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION

1 monitor.

Krita
  Version: 4.2.6 (git 714a51b)

Qt
  Version (compiled): 5.12.5
  Version (loaded): 5.12.5

OS Information
  Build ABI: x86_64-little_endian-llp64
  Build CPU: x86_64
  CPU: x86_64
  Kernel Type: winnt
  Kernel Version: 10.0.18362
  Pretty Productname: Windows 10 (10.0)
  Product Type: windows
  Product Version: 10


OpenGL Info

  Vendor:  "Google Inc." 
  Renderer:  "ANGLE (Intel(R) HD Graphics 4000 Direct3D11 vs_5_0 ps_5_0)" 
  Version:  "OpenGL ES 3.0 (ANGLE 2.1.0.57ea533f79a7)" 
  Shading language:  "OpenGL ES GLSL ES 3.00 (ANGLE 2.1.0.57ea533f79a7)" 
  Requested format:  QSurfaceFormat(version 3.0, options
QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions), depthBufferSize 24,
redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 8,
stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::DoubleBuffer,
swapInterval 0, colorSpace QSurfaceFormat::DefaultColorSpace, profile 
QSurfaceFormat::CompatibilityProfile) 
  Current format:    QSurfaceFormat(version 3.0, options
QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24, redBufferSize 8,
greenBufferSize 8, blueBufferSize 8, alphaBufferSize 8, stencilBufferSize 8,
samples 0, swapBehavior QSurfaceFormat::DefaultSwapBehavior, swapInterval 0,
colorSpace QSurfaceFormat::DefaultColorSpace, profile 
QSurfaceFormat::NoProfile) 
     Version: 3.0
     Supports deprecated functions false 
     is OpenGL ES: true 

QPA OpenGL Detection Info 
  supportsDesktopGL: true 
  supportsAngleD3D11: true 
  isQtPreferAngle: false 
== log ==
 Supported renderers: QFlags(0x2|0x4|0x8) 
Surface format preference list: 
* QSurfaceFormat(version 3.0, options
QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions), depthBufferSize 24,
redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 8,
stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::DoubleBuffer,
swapInterval 0, colorSpace QSurfaceFormat::DefaultColorSpace, profile 
QSurfaceFormat::CompatibilityProfile) 
    4 
* QSurfaceFormat(version 3.0, options
QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions), depthBufferSize 24,
redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 8,
stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::DoubleBuffer,
swapInterval 0, colorSpace QSurfaceFormat::DefaultColorSpace, profile 
QSurfaceFormat::CompatibilityProfile) 
    2 
* QSurfaceFormat(version 3.0, options
QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions), depthBufferSize 24,
redBufferSize 16, greenBufferSize 16, blueBufferSize 16, alphaBufferSize 16,
stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::DoubleBuffer,
swapInterval 0, colorSpace QSurfaceFormat::scRGBColorSpace, profile 
QSurfaceFormat::CompatibilityProfile) 
    4 
* QSurfaceFormat(version 3.0, options
QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions), depthBufferSize 24,
redBufferSize 10, greenBufferSize 10, blueBufferSize 10, alphaBufferSize 2,
stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::DoubleBuffer,
swapInterval 0, colorSpace QSurfaceFormat::bt2020PQColorSpace, profile 
QSurfaceFormat::CompatibilityProfile) 
    4 
* QSurfaceFormat(version 3.0, options
QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions), depthBufferSize 24,
redBufferSize 16, greenBufferSize 16, blueBufferSize 16, alphaBufferSize 16,
stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::DoubleBuffer,
swapInterval 0, colorSpace QSurfaceFormat::scRGBColorSpace, profile 
QSurfaceFormat::CompatibilityProfile) 
    2 
* QSurfaceFormat(version 3.0, options
QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions), depthBufferSize 24,
redBufferSize 10, greenBufferSize 10, blueBufferSize 10, alphaBufferSize 2,
stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::DoubleBuffer,
swapInterval 0, colorSpace QSurfaceFormat::bt2020PQColorSpace, profile 
QSurfaceFormat::CompatibilityProfile) 
    2 
* QSurfaceFormat(version 3.0, options
QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions), depthBufferSize 24,
redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 8,
stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::DoubleBuffer,
swapInterval 0, colorSpace QSurfaceFormat::DefaultColorSpace, profile 
QSurfaceFormat::CompatibilityProfile) 
    8 
* QSurfaceFormat(version 3.0, options
QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions), depthBufferSize 24,
redBufferSize 16, greenBufferSize 16, blueBufferSize 16, alphaBufferSize 16,
stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::DoubleBuffer,
swapInterval 0, colorSpace QSurfaceFormat::scRGBColorSpace, profile 
QSurfaceFormat::CompatibilityProfile) 
    8 
* QSurfaceFormat(version 3.0, options
QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions), depthBufferSize 24,
redBufferSize 10, greenBufferSize 10, blueBufferSize 10, alphaBufferSize 2,
stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::DoubleBuffer,
swapInterval 0, colorSpace QSurfaceFormat::bt2020PQColorSpace, profile 
QSurfaceFormat::CompatibilityProfile) 
    8 
Probing format... QSurfaceFormat::DefaultColorSpace 4 
Found format: QSurfaceFormat(version 3.0, options
QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions), depthBufferSize 24,
redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 8,
stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::DoubleBuffer,
swapInterval 0, colorSpace QSurfaceFormat::DefaultColorSpace, profile 
QSurfaceFormat::CompatibilityProfile) 
    4 

== end log == 

Hardware Information
 Memory: 3 Gb
 Cores: 4
 Swap: C:/Users/kaj/AppData/Local/Temp

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

Reply via email to