The 3 part of the conditional in the is_equal_brush method compared the b1->u.color field to itself, instead of b2->u.color
Signed-off-by: Daniel P. Berrange <berra...@redhat.com> --- server/red_worker.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/server/red_worker.c b/server/red_worker.c index fc74924..e271ae5 100644 --- a/server/red_worker.c +++ b/server/red_worker.c @@ -2346,7 +2346,7 @@ static int is_equal_brush(SpiceBrush *b1, SpiceBrush *b2) { return b1->type == b2->type && b1->type == SPICE_BRUSH_TYPE_SOLID && - b1->u.color == b1->u.color; + b1->u.color == b2->u.color; } // partial imp -- 1.7.1 _______________________________________________ Spice-devel mailing list Spice-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/spice-devel