Skip to content

Commit c5673ac

Browse files
teunbrandthomasp85
authored andcommitted
setup parameters before declaring key (#5643)
1 parent c72051c commit c5673ac

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

R/guide-.R

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,11 +297,12 @@ Guide <- ggproto(
297297
draw = function(self, theme, position = NULL, direction = NULL,
298298
params = self$params) {
299299

300-
key <- params$key
301-
302-
# Setup parameters and theme
300+
# Setup parameters
303301
params <- replace_null(params, position = position, direction = direction)
304302
params <- self$setup_params(params)
303+
key <- params$key
304+
305+
# Setup style options
305306
elems <- self$setup_elements(params, self$elements, theme)
306307
elems <- self$override_elements(params, elems, theme)
307308

0 commit comments

Comments
 (0)