[dia] svg: CSS style lookup also for tag alone
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] svg: CSS style lookup also for tag alone
- Date: Sun, 4 Aug 2013 12:44:46 +0000 (UTC)
commit 5444eb0d790be2bd33e74457417cfbe20d69699a
Author: Hans Breuer <hans breuer org>
Date: Sat Aug 3 20:26:00 2013 +0200
svg: CSS style lookup also for tag alone
plug-ins/svg/svg-import.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/plug-ins/svg/svg-import.c b/plug-ins/svg/svg-import.c
index 5beee88..ea59d8f 100644
--- a/plug-ins/svg/svg-import.c
+++ b/plug-ins/svg/svg-import.c
@@ -307,6 +307,13 @@ _css_parse_style (DiaSvgStyle *s, real user_scale,
style = NULL;
}
+ /* also type only style */
+ style = g_hash_table_lookup (style_ht, tag);
+ if (style) {
+ dia_svg_parse_style_string (s, user_scale, style);
+ style = NULL;
+ }
+
/* build the key in order of importance */
/* tag.class#id */
if (id && klass) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]