From 1ce07672bee15d83fa25d43241fb00193604bc8a Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Tue, 19 Feb 2019 13:57:18 +0100 Subject: Fix code to avoid error message "descr without font family". --- src/libnrtype/font-lister.cpp | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) (limited to 'src/libnrtype') diff --git a/src/libnrtype/font-lister.cpp b/src/libnrtype/font-lister.cpp index 9c9e07ad2..701c5c3d6 100644 --- a/src/libnrtype/font-lister.cpp +++ b/src/libnrtype/font-lister.cpp @@ -25,8 +25,17 @@ #include "preferences.h" #include "object/sp-object.h" + +// Following are needed to limit the source of updating font data to text and containers. #include "object/sp-root.h" -#include "object/sp-namedview.h" +#include "object/sp-object-group.h" +#include "object/sp-anchor.h" +#include "object/sp-text.h" +#include "object/sp-tspan.h" +#include "object/sp-textpath.h" +#include "object/sp-tref.h" +#include "object/sp-flowtext.h" +#include "object/sp-flowdiv.h" #include "xml/repr.h" @@ -413,9 +422,20 @@ void FontLister::update_font_data_recursive(SPObject& r, std::map