Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Miguel Lopez
Krita
Commits
6c266016
Commit
6c266016
authored
Jul 17, 2014
by
Halla Rempt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
KoColorSet: set colums to 10 when the file says 0
parent
11286e77
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
libs/pigment/resources/KoColorSet.cpp
libs/pigment/resources/KoColorSet.cpp
+5
-1
No files found.
libs/pigment/resources/KoColorSet.cpp
View file @
6c266016
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment