Skip to content

Commit cc119fa

Browse files
EvgenyB1001iText-CI
authored andcommitted
Refactor kernel/colors/Color hashCode() method
DEVSIX-4518 Autoported commit. Original commit hash: [53b4358d8]
1 parent 4c6e16b commit cc119fa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

itext/itext.kernel/itext/kernel/colors/Color.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ public override bool Equals(Object o) {
273273

274274
/// <summary><inheritDoc/></summary>
275275
public override int GetHashCode() {
276-
int result = colorSpace != null ? colorSpace.GetHashCode() : 0;
276+
int result = colorSpace != null ? colorSpace.GetPdfObject().GetHashCode() : 0;
277277
result = 31 * result + (colorValue != null ? JavaUtil.ArraysHashCode(colorValue) : 0);
278278
return result;
279279
}

port-hash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
26cd63555494beba3ef4e211cbd3bcba42f5e8d4
1+
53b4358d82348528526dd01baae4d4a4cd9c6b2d

0 commit comments

Comments
 (0)