Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 690033 Details for
Bug 877681
[abrt] inkscape-0.48.3.1-2.fc17: Inkscape::Extension::Implementation::Script::effect: Process /usr/bin/inkscape was killed by signal 11 (SIGSEGV)
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Python script of the extension
ungroup_deep.py (text/x-python), 1.55 KB, created by
Matěj Cepl
on 2013-01-29 21:26:27 UTC
(
hide
)
Description:
Python script of the extension
Filename:
MIME Type:
Creator:
Matěj Cepl
Created:
2013-01-29 21:26:27 UTC
Size:
1.55 KB
patch
obsolete
>#!/usr/bin/python ># -*- coding: utf-8 -*- >""" >see #inkscape on Freenode and >https://github.com/nikitakit/svg2sif/blob/master/synfig_prepare.py#L370 >for an example how to do the transform of parent to children. >""" > >__version__ = "0.2" # Works but in terms of maturity, still unsure > >import logging >logging.basicConfig(format='%(levelname)s:%(funcName)s:%(message)s', > level=logging.DEBUG) > >try: > import inkex >except ImportError: > raise ImportError("""No module named inkex in {0}.""".format(__file__)) >from ungroup_utils import propagate_attribs > >SVG_NS = "http://www.w3.org/2000/svg" >INKSCAPE_NS = "http://www.inkscape.org/namespaces/inkscape" > > >class Ungroup(inkex.Effect): > def _ungroup(self, obj): > if (obj.tag == inkex.addNS('g', 'svg')): > propagate_attribs(obj) > logging.debug("group element = %s, id = %s", obj, obj.attrib["id"]) > children = list(obj) > obj_parent = obj.getparent() > obj_index = list(obj_parent).index(obj) > for child in reversed(children): > obj_parent.insert(obj_index, child) > obj_parent.remove(obj) > > for elem in children: > self._ungroup(elem) > > else: > logging.debug("non-group element = %s", obj) > > def effect(self): > if len(self.selected): > for elem in self.selected.itervalues(): > self._ungroup(elem) > else: > for elem in self.document.getroot(): > self._ungroup(elem) > >if __name__ == '__main__': > effect = Ungroup() > effect.affect()
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 877681
:
646970
|
646971
|
646972
|
646973
|
646974
|
646975
|
646976
|
646977
|
646978
|
646979
|
646980
|
690030
|
690031
|
690032
| 690033