Skip to content

Commit 1799cc3

Browse files
authored
Fix color box dialog reference to 'self_'
1 parent 30b597a commit 1799cc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/xtd.forms.examples/dialogs/color_box/src/color_box.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class form1 : public form {
1010
button1.text("Color...");
1111
button1.click += delegate_ {
1212
auto color = back_color();
13-
if (color_box::show(color, *this) == forms::dialog_result::ok)
13+
if (color_box::show(color, self_) == forms::dialog_result::ok)
1414
back_color(color);
1515
};
1616
}

0 commit comments

Comments
 (0)