In inkscape extension v0.23, "enable-viewboxing" should be passed to the script

Bug #503750 reported by vpadawan
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Scour
Fix Released
Undecided
Unassigned

Bug Description

Thanks for the new release. There is still a minor problem with the inkscape extension : the script fails, as "enable-viewboxing" is not passed to scour.inkscape.py. For those who want to fix this bug immediately :

(1) in scour.inx, "param" list, add:

<param name="enable-viewboxing" type="boolean" _gui-text="Enable viewboxing">false</param>

(2) in scour.inkscape.py,
(2.1) in the definition of init, add :

 self.OptionParser.add_option("--enable-viewboxing", type="inkbool",
            action="store", dest="viewboxing", default=False,
            help="changes document width/height to 100%/100% and creates viewbox coordinates")

(2.2) in the definition of effect, replace 11 by 12.

Revision history for this message
codedread (codedread) wrote :

Thanks - silly bug on my part. I have updated the scour-inkscape-extension.zip file on my site at http://codedread.com/scour/scour-inkscape-extension-0.23.zip

Myabe the extension should become part of Inkscape's release?

Changed in scour:
status: New → In Progress
status: In Progress → Fix Released
Revision history for this message
jazzynico (jazzynico) wrote :

Thanks Jeff!

I've already added it to the dev Inkscape repo yesterday...

There is a small error (already fixed in the Inskcape version) that prevents scour from working as an extension. In scour.py, dest="viewboxing" and in scour.inkscape.py, dest="enable_viewboxing". I've changed scour.py so that it always uses "enable_viewboxing" instead of "viewboxing".

Patched version attached.

Revision history for this message
jazzynico (jazzynico) wrote :

Hi,
Since the extension version is not currently working, I reopen this report.

Changed in scour:
status: Fix Released → In Progress
codedread (codedread)
Changed in scour:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.