summaryrefslogtreecommitdiffstats
path: root/src/file.cpp
diff options
context:
space:
mode:
authorNicolas Dufour <nicoduf@yahoo.fr>2011-03-14 19:50:25 +0000
committerJazzyNico <nicoduf@yahoo.fr>2011-03-14 19:50:25 +0000
commit861f06b2338b396878a679471d63a890febfc73b (patch)
treef4b7ea1606274097e4c089b67edff52ecd88098e /src/file.cpp
parentExtensions. Slider in Float and Int extension widgets. (diff)
downloadinkscape-861f06b2338b396878a679471d63a890febfc73b.tar.gz
inkscape-861f06b2338b396878a679471d63a890febfc73b.zip
Import. Patch for Bug #716362 (Invalid result when drag and drop svg file), by Johannes Lipp.
Fixed bugs: - https://launchpad.net/bugs/716362 (bzr r10104)
Diffstat (limited to '')
-rw-r--r--src/file.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file.cpp b/src/file.cpp
index 2816b0434..c93188358 100644
--- a/src/file.cpp
+++ b/src/file.cpp
@@ -978,7 +978,7 @@ file_import(SPDocument *in_doc, const Glib::ustring &uri,
// Create a new group if necessary.
Inkscape::XML::Node *newgroup = NULL;
- if ((style && style->firstChild()) || items_count > 1) {
+ if ((style && style->attributeList()) || items_count > 1) {
newgroup = xml_in_doc->createElement("svg:g");
sp_repr_css_set(newgroup, style, "style");
}