Commit ad0e329c authored by Dmitry Kazakov's avatar Dmitry Kazakov

Fixed a performance bug in KoID

In general, code duplication is not good. Avoiding it here makes the
performance of multi-colorspace painting about 5 times faster.
parent 6c7ceb9d
......@@ -64,12 +64,7 @@ public:
KoID(const KoID &rhs)
m_id = rhs.m_id;
if (rhs.m_name.isEmpty()) {
m_name = rhs.m_localizedString.toString();
else {
m_name = rhs.m_name;
m_name =;
QString id() const {
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