Commit 6c266016 authored by Halla Rempt's avatar Halla Rempt

KoColorSet: set colums to 10 when the file says 0

parent 11286e77
......@@ -201,6 +201,10 @@ bool KoColorSet::init()
}
setValid(res);
if (m_columns == 0) {
m_columns = 10;
}
QImage img(m_columns * 4, (m_colors.size() / m_columns) * 4, QImage::Format_ARGB32);
QPainter gc(&img);
gc.fillRect(img.rect(), Qt::darkGray);
......@@ -268,7 +272,7 @@ bool KoColorSet::loadGpl()
return false;
}
quint32 index = 0;
quint32 index = 0;
QStringList lines = s.split('\n', QString::SkipEmptyParts);
......
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