PS Level Restriction reversed

Bug #698340 reported by Michael Culbertson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Medium
Michael Culbertson

Bug Description

When saving postscript via Cairo, the option to restrict the generated PS to level 2 or 3 produces the reversed effect (selecting "restrict to level 2" generates level 3 PS and selecting "restrict to level 3" generates level 2 PS). This seems to be due to an inappropriate negation of the comparison of the PSlevel option value with "PS3" in cairo-ps-out.cpp (see attached patch).

Inkscape version 0.48.

Tags: exporting eps ps
Revision history for this message
Michael Culbertson (michael-culbertson) wrote :
Revision history for this message
su_v (suv-lp) wrote :

Possibly fixes bug #491590 “EPS Level 3 export Rasterized”
<https://bugs.launchpad.net/inkscape/+bug/491590>

tags: added: eps exporting ps
Revision history for this message
su_v (suv-lp) wrote :

Patch tested and fix confirmed for bug #491590 with Inkscape 0.48+devel r9999+patch on OS X 10.5.8 (Cairo 10.0.2) using the example attached there:
<https://bugs.launchpad.net/inkscape/+bug/491590/+attachment/1056873/+files/Eps%20Size%20Test.svg>

@JazzyNico - can you verify on linux (possibly win32 too)? If accepted, this fix should be backported to 0.48.x (for 0.48.1 or 0.48.2).

Changed in inkscape:
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
su_v (suv-lp) wrote :

@Michael Culbertson - thank you for investigating this issue and sharing the patch!

Revision history for this message
su_v (suv-lp) wrote :

Fix tested and confirmed with test case from bug #585286:
<https://bugs.launchpad.net/inkscape/+bug/585286/+attachment/1403536/+files/New.svg>

The patch solves the issue for both Postscript export formats (PS, EPS).

Revision history for this message
jazzynico (jazzynico) wrote :

Fix confirmed on Ubuntu 10.04, and committed in the trunk, revision 10000 (yeah!).
Thanks Michael!

Changed in inkscape:
milestone: none → 0.49
status: In Progress → Fix Committed
Revision history for this message
jazzynico (jazzynico) wrote :

Also committed in the 0.48.x branch, revision 9754.
(milestone confirmation pending)

jazzynico (jazzynico)
Changed in inkscape:
milestone: 0.49 → 0.48.1
jazzynico (jazzynico)
Changed in inkscape:
status: Fix Committed → Fix Released
assignee: nobody → Michael Culbertson (michael-culbertson)
Revision history for this message
heyzuess (heyzeuss) wrote :

Not yet fixed in Windows 7 Inkscape 0.48.4 r9939. I don't understand what:

    milestone: 0.49 → 0.48.1

means. Does it mean that it will be fixed in 0.49?

Revision history for this message
jazzynico (jazzynico) wrote :

@heyzuess, the bug you're referring to is Windows specific and is tracked in Bug #1157064 "Inkscape save PostScript with wrong level".

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.