Skip to content

Commit a634f20

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

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

R/guides-.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,8 +514,7 @@ Guides <- ggproto(
514514

515515
# we grouped the legends by the positions, for inside legends, they'll be
516516
# splitted by the actual inside coordinate
517-
for (i in seq_along(positions)) {
518-
if (identical(positions[i], "inside")) {
517+
for (i in seq_along(positions)[positions == "inside"]) {
519518
# the actual inside position and justification can be set in each guide
520519
# by `theme` argument, here, we won't use `calc_element()` which will
521520
# use inherits from `legend.justification` or `legend.position`, we only

0 commit comments

Comments
 (0)