Commit 861f06b2 authored by Nicolas Dufour's avatar Nicolas Dufour Committed by Nicolas Dufour

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)
parent e3ad9bfc
......@@ -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");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment