Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit dcaec49d authored by Boudewijn Rempt's avatar Boudewijn Rempt

Build fixes for pigment

parent c38ec621
......@@ -16,7 +16,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#include "pigment_debug.h"
#include "DebugPigment.h"
Q_LOGGING_CATEGORY(PIGMENT_log, "log_pigment")
......@@ -205,7 +205,7 @@ void KoColor::fromQColor(const QColor& c) const
#ifndef NDEBUG
void KoColor::dump() const
{
dbgPigment <<"KoColor (" << this <<")," << d->colorSpace->id().name() <<"";
dbgPigment <<"KoColor (" << this <<")," << d->colorSpace->id() <<"";
QList<KoChannelInfo *> channels = d->colorSpace->channels();
QList<KoChannelInfo *>::const_iterator begin = channels.constBegin();
......
......@@ -91,7 +91,7 @@ bool KoPattern::load()
bool result;
if (!file.open(QIODevice::ReadOnly)) {
kWarning() << "Can't open file " << filename();
qWarning() << "Can't open file " << filename();
return false;
}
result = loadFromDevice(&file);
......@@ -251,7 +251,7 @@ bool KoPattern::init(QByteArray& bytes)
QRgb* pixels = reinterpret_cast<QRgb*>( pattern.scanLine(y) );
for (quint32 x = 0; x < bh.width; ++x, ++k) {
if (k > dataSize) {
kWarning(30009) << "failed in gray";
qWarning() << "failed to load grayscale pattern" << filename();
return false;
}
......@@ -271,7 +271,7 @@ bool KoPattern::init(QByteArray& bytes)
QRgb* pixels = reinterpret_cast<QRgb*>( pattern.scanLine(y) );
for (quint32 x = 0; x < bh.width; ++x, ++k) {
if (k + 2 > dataSize) {
kWarning(30009) << "failed in grayA";
qWarning() << "failed to load grayscale +_ alpha pattern" << filename();
return false;
}
......@@ -287,7 +287,7 @@ bool KoPattern::init(QByteArray& bytes)
QRgb* pixels = reinterpret_cast<QRgb*>( pattern.scanLine(y) );
for (quint32 x = 0; x < bh.width; ++x) {
if (k + 3 > dataSize) {
kWarning(30009) << "failed in RGB";
qWarning() << "failed to load RGB pattern" << filename();
return false;
}
pixels[x] = qRgb(data[k],
......@@ -302,7 +302,7 @@ bool KoPattern::init(QByteArray& bytes)
QRgb* pixels = reinterpret_cast<QRgb*>( pattern.scanLine(y) );
for (quint32 x = 0; x < bh.width; ++x) {
if (k + 4 > dataSize) {
kWarning(30009) << "failed in RGBA";
qWarning() << "failed to load RGB + Alpha pattern" << filename();
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment