Oops, self -> this.
This commit is contained in:
parent
f25b8dce37
commit
5282951681
|
@ -127,17 +127,17 @@ public:
|
||||||
size_t ret = 0;
|
size_t ret = 0;
|
||||||
double r, g, b, a;
|
double r, g, b, a;
|
||||||
|
|
||||||
if (self->colorAttr != NULL) {
|
if (this->colorAttr != NULL) {
|
||||||
uiAttributeColor(self->colorAttr, &r, &g, &b, &a);
|
uiAttributeColor(this->colorAttr, &r, &g, &b, &a);
|
||||||
ret ^= doubleHash(r);
|
ret ^= doubleHash(r);
|
||||||
ret ^= doubleHash(g);
|
ret ^= doubleHash(g);
|
||||||
ret ^= doubleHash(b);
|
ret ^= doubleHash(b);
|
||||||
ret ^= doubleHash(a);
|
ret ^= doubleHash(a);
|
||||||
}
|
}
|
||||||
if (self->underlineAttr != NULL)
|
if (this->underlineAttr != NULL)
|
||||||
ret ^= (size_t) uiAttributeUnderline(self->underlineAttr);
|
ret ^= (size_t) uiAttributeUnderline(this->underlineAttr);
|
||||||
if (self->underlineColorAttr != NULL) {
|
if (this->underlineColorAttr != NULL) {
|
||||||
uiAttributeUnderlineColor(self->underlineColorAttr, &colorType, &r, &g, &b, &a);
|
uiAttributeUnderlineColor(this->underlineColorAttr, &colorType, &r, &g, &b, &a);
|
||||||
ret ^= (size_t) colorType;
|
ret ^= (size_t) colorType;
|
||||||
ret ^= doubleHash(r);
|
ret ^= doubleHash(r);
|
||||||
ret ^= doubleHash(g);
|
ret ^= doubleHash(g);
|
||||||
|
@ -163,14 +163,14 @@ public:
|
||||||
uiUnderlineColor colorType;
|
uiUnderlineColor colorType;
|
||||||
|
|
||||||
dea = new drawingEffectsAttr;
|
dea = new drawingEffectsAttr;
|
||||||
if (self->colorAttr != NULL) {
|
if (this->colorAttr != NULL) {
|
||||||
uiAttributeColor(self->colorAttr, &r, &g, &b, &a);
|
uiAttributeColor(this->colorAttr, &r, &g, &b, &a);
|
||||||
dea->addColor(r, g, b, a);
|
dea->addColor(r, g, b, a);
|
||||||
}
|
}
|
||||||
if (self->underlineAttr != NULL)
|
if (this->underlineAttr != NULL)
|
||||||
dea->addUnderline(uiAttributeUnderline(self->underlineAttr));
|
dea->addUnderline(uiAttributeUnderline(this->underlineAttr));
|
||||||
if (self->underlineColorAttr != NULL) {
|
if (this->underlineColorAttr != NULL) {
|
||||||
uiAttributeUnderlineColor(self->underlineColor, &colorType, &r, &g, &b, &a);
|
uiAttributeUnderlineColor(this->underlineColor, &colorType, &r, &g, &b, &a);
|
||||||
// TODO see if Microsoft has any standard colors for these
|
// TODO see if Microsoft has any standard colors for these
|
||||||
switch (colorType) {
|
switch (colorType) {
|
||||||
case uiUnderlineColorSpelling:
|
case uiUnderlineColorSpelling:
|
||||||
|
|
Loading…
Reference in New Issue