Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Fix reading indexed psd color mode blocks

Halla Rempta84611863e9d
diff --git a/plugins/impex/psd/psd_colormode_block.cpp b/plugins/impex/psd/psd_colormode_block.cpp
index dd48229976..54385d625f 100644
--- a/plugins/impex/psd/psd_colormode_block.cpp
+++ b/plugins/impex/psd/psd_colormode_block.cpp
@@ -42,7 +42,7 @@ bool PSDColorModeBlock::read(QIODevice &io)
int i = 0;
while (i <= 767) {
colormap.append(qRgb(data[i],data[i + 1],data[i + 2]));
- i += 2;
+ i += 3;
}
}
else {