Skip to content

Commit 52a80e1

Browse files
committed
catch an is_zero() case
1 parent 6138cf2 commit 52a80e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/coord-radial.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ deg2rad <- function(deg) deg * pi / 180
575575
# Function to rotate a radius axis through viewport
576576
rotate_r_axis <- function(axis, angle, bbox, position = "left") {
577577

578-
if (inherits(axis, "zeroGrob")) {
578+
if (is_zero(axis)) {
579579
return(axis)
580580
}
581581

0 commit comments

Comments
 (0)