# HG changeset patch # User Rik # Date 1642087698 28800 # Node ID 3c4e851e0220d87ea80efd8269cf8f1546166a05 # Parent 064a8fbf91628076dfb2f25e549c67283a650f55 Fix default properties of axes labels being overrided by "text" defaults (bug #61804) * graphics.cc (make_graphics_handle): For axes objects, call override_defaults() on "xlabel", "ylabel", "zlabel", "title" objects before calling override_defaults() for axes object. diff -r 064a8fbf9162 -r 3c4e851e0220 libinterp/corefcn/graphics.cc --- a/libinterp/corefcn/graphics.cc Tue Jan 11 12:43:53 2022 -0800 +++ b/libinterp/corefcn/graphics.cc Thu Jan 13 07:28:18 2022 -0800 @@ -11944,10 +11944,6 @@ m_handle_map[h] = go; - // Overriding defaults will work now because the handle is valid - // and we can find parent objects (not just handles). - go.override_defaults (); - if (go_name == "axes") { // Handle defaults for labels since overriding defaults for @@ -11972,6 +11968,10 @@ tgo.override_defaults (); } + // Overriding defaults will work now because the handle is valid + // and we can find parent objects (not just handles). + go.override_defaults (); + if (call_createfcn) bgo->get_properties ().execute_createfcn ();