From cf4f5f8a6307a13e9858ca981c394b876f83aecb Mon Sep 17 00:00:00 2001 From: Rik Date: Mon, 25 Nov 2024 16:42:27 -0800 Subject: [PATCH] hdl2struct.m: Fix missing legend markers (bug #65904) * hdl2struct.m: When processing "legend" axes objects, specifically add hidden children with "markertruesize" property to list of children to save. --- scripts/plot/util/hdl2struct.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/plot/util/hdl2struct.m b/scripts/plot/util/hdl2struct.m index 9e6e20b055..78e8898d47 100644 --- a/scripts/plot/util/hdl2struct.m +++ b/scripts/plot/util/hdl2struct.m @@ -62,6 +62,11 @@ ## Check for polar plots with special "polar_grid" object ## FIXME: A hack to fix bug #62093. kids = [kids; findall(h, "tag", "polar_grid")]; + + ## Add legend markers which are normally hidden + if (strcmp (s.properties.tag, "legend")) + kids = [kids; findall(h, "-depth", 1, "type", "line", "-property", "markertruesize")]; + endif endif nkids = length (kids);