summaryrefslogtreecommitdiffstats
path: root/src/libnrtype
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2018-04-04 16:16:01 +0000
committerTavmjong Bah <tavmjong@free.fr>2018-04-04 16:16:01 +0000
commit92fccf740766b6416066cb911cb3a02e1c0acd3b (patch)
treefd7190c17aad0d0bc7a9a1e41f753096b7b729ea /src/libnrtype
parentRemove call to update font list when selection changes. (diff)
downloadinkscape-92fccf740766b6416066cb911cb3a02e1c0acd3b.tar.gz
inkscape-92fccf740766b6416066cb911cb3a02e1c0acd3b.zip
Reduce error messages.
Diffstat (limited to 'src/libnrtype')
-rw-r--r--src/libnrtype/font-lister.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libnrtype/font-lister.cpp b/src/libnrtype/font-lister.cpp
index 3c4e159fd..b2b290272 100644
--- a/src/libnrtype/font-lister.cpp
+++ b/src/libnrtype/font-lister.cpp
@@ -17,6 +17,7 @@
#include "preferences.h"
#include "object/sp-object.h"
#include "object/sp-root.h"
+#include "object/sp-namedview.h"
#include "xml/repr.h"
#include <glibmm/regex.h>
@@ -325,11 +326,13 @@ void FontLister::update_font_data_recursive(SPObject& r, std::map<Glib::ustring,
font_data[font_family].insert(font_style);
}
} else {
- std::cerr << "FontLister::update_font_data_recursive: descr without font family!" << std::endl;
+ // We're starting from root and looking at all elements... we should probably white list text/containers.
+ std::cerr << "FontLister::update_font_data_recursive: descr without font family! " << (r.getId()?r.getId():"null") << std::endl;
}
pango_font_description_free(descr);
for (auto& child: r.children) {
+ if (SP_IS_NAMEDVIEW(&r)) continue;
update_font_data_recursive(child, font_data);
}
}