Skip to content

Commit 5024af5

Browse files
fixed default canvas size value
1 parent e15f3b5 commit 5024af5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dialogs.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ func (dlg *PropertiesDialog) Init(parent Window) {
7878
&WLabel{Text: "Height:\t", Margins: Margins{Top: 4}},
7979
&WTextBox{Text: "648", Width: 60, Height: 24, Margins: Margins{Right: 10}, AssignTo: &dlg.height},
8080
&WButton{Text: "Default", Width: 70, Height: 24, OnClick: func(sender Button) {
81-
dlg.width.SetText("1152")
82-
dlg.height.SetText("648")
81+
dlg.width.SetText(strconv.Itoa(app.DefaultCanvasSize.Width))
82+
dlg.height.SetText(strconv.Itoa(app.DefaultCanvasSize.Height))
8383
}},
8484
}},
8585
&WFlowContainer{FlowDirection: FlowNone, DockType: DockFill,

0 commit comments

Comments
 (0)