Skip to content

Commit

Permalink
fix struct field reference (part 2)
Browse files Browse the repository at this point in the history
  • Loading branch information
spytheman committed Jul 29, 2024
1 parent 66504b6 commit 0584d99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion component/fontbutton.v
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub mut:
pub struct FontButtonParams {
pub:
id string
dtw ui.DrawTextWidget = ui.canvas_plus()
dtw &ui.DrawTextWidget = ui.canvas_plus()
text string
height int
width int
Expand Down
2 changes: 1 addition & 1 deletion component/fontchooser.v
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub struct FontChooserParams {
pub:
id string = component.fontchooser_lb_id
draw_lines bool = true
dtw ui.DrawTextWidget = ui.canvas_plus() // since it requires an intialisation
dtw &ui.DrawTextWidget = ui.canvas_plus() // since it requires an intialisation
}

// TODO: documentation
Expand Down

0 comments on commit 0584d99

Please sign in to comment.