Skip to content

Commit

Permalink
fix gridColor spilling over normal color
Browse files Browse the repository at this point in the history
  • Loading branch information
dk committed Nov 17, 2024
1 parent 4eae92a commit 581b4bb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Prima/Grids.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1412,8 +1412,12 @@ sub on_paint
$$_[4] = $a[3] if $$_[4] > $a[3];
}

$canvas-> color( $self-> {gridColor});
$canvas-> lines( \@grid) if @grid;
if ( @grid ) {
my $c = $canvas->color;
$canvas-> color( $self-> {gridColor});
$canvas-> lines( \@grid);
$canvas-> color( $c );
}

$self-> draw_cells( $canvas, \@colsDraw, \@rowsDraw, \@a);
}
Expand Down

0 comments on commit 581b4bb

Please sign in to comment.