# HG changeset patch # User Sahil Yadav # Date 1516700723 -3600 # Node ID b708857d634e9632a646c63f655e156174f828d9 # Parent ab2321d4ba03671aff259e89751899c5af6b3466 Correctly display boolean properties default values (bug #52768) * graphics.in.h (bool_property::bool_property): correctly set default string in constructor * contributors.in: add Sahil Yadav diff -r ab2321d4ba03 -r b708857d634e doc/interpreter/contributors.in --- a/doc/interpreter/contributors.in Mon Jan 22 02:17:46 2018 -0500 +++ b/doc/interpreter/contributors.in Tue Jan 23 10:45:23 2018 +0100 @@ -424,6 +424,7 @@ Joachim Wiesemann Alexander Wilms Georg Wiora +Sahil Yadav Fook Fah Yap Sean Young Michele Zaffalon diff -r ab2321d4ba03 -r b708857d634e libinterp/corefcn/graphics.in.h --- a/libinterp/corefcn/graphics.in.h Mon Jan 22 02:17:46 2018 -0500 +++ b/libinterp/corefcn/graphics.in.h Tue Jan 23 10:45:23 2018 +0100 @@ -1589,7 +1589,8 @@ bool_property (const std::string& nm, const graphics_handle& h, const char *val) - : radio_property (nm, h, radio_values ("on|off"), val) + : radio_property (nm, h, radio_values (std::string (val) == "on" ? + "{on}|off" : "on|{off}"), val) { } bool_property (const bool_property& p)