Skip to content

Commit acbf747

Browse files
Yunuuuuteunbrand
andauthored
Update R/guides-.R
Co-authored-by: Teun van den Brand <[email protected]>
1 parent e381fa3 commit acbf747

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

R/guides-.R

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -522,11 +522,7 @@ Guides <- ggproto(
522522
# use inherits from `legend.justification` or `legend.position`, we only
523523
# follow the inside elements from the guide theme
524524
inside_just <- params[[i]]$theme[["legend.justification.inside"]]
525-
if (is.null(inside_just)) {
526-
inside_justs[[i]] <- default_inside_just
527-
} else {
528-
inside_justs[[i]] <- valid.just(inside_just)
529-
}
525+
inside_justs[[i]] <- valid.just(inside_just %||% default_inside_just)
530526
inside_positions[[i]] <- params[[i]]$theme[[
531527
"legend.position.inside"
532528
]] %||% default_inside_position %||% inside_justs[[i]]

0 commit comments

Comments
 (0)