mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-27 21:02:23 +00:00
FIX: skip the color codes with undefined color syntax
jira: [STUDIO-13037] Change-Id: Ic733a2b67df49556c16f4392ecf61d95471e9aa8 (cherry picked from commit 6658f522166e432b383669903a0b30ee15cf6cdc)
This commit is contained in:
@@ -64,6 +64,7 @@ struct wxColorSorter
|
||||
if (ha.h != hb.h) return ha.h < hb.h;
|
||||
if (ha.s != hb.s) return ha.s < hb.s;
|
||||
if (ha.v != hb.v) return ha.v < hb.v;
|
||||
if (lhs_it.Alpha() != rhs_it.Alpha()) return lhs_it.Alpha() < rhs_it.Alpha();
|
||||
return false;
|
||||
}
|
||||
};
|
||||
@@ -119,6 +120,10 @@ public:
|
||||
if (ha.s != hb.s) return ha.s < hb.s;
|
||||
if (ha.v != hb.v) return ha.v < hb.v;
|
||||
|
||||
int lhs_alpha = lhs_it->Alpha();
|
||||
int rhs_alpha = rhs_it->Alpha();
|
||||
if (lhs_alpha != rhs_alpha) return lhs_alpha < rhs_alpha;
|
||||
|
||||
lhs_it++;
|
||||
rhs_it++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user