Mercurial > octave
changeset 30637:3c4e851e0220 stable
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.
author | Rik <rik@octave.org> |
---|---|
date | Thu, 13 Jan 2022 07:28:18 -0800 |
parents | 064a8fbf9162 |
children | 7961eb9cdc18 6ad5bb8f6a6d |
files | libinterp/corefcn/graphics.cc |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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 ();