Drop shadows don't appear on horizontal and vertical lines

Bug #1478602 reported by Bartosz Leper
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
New
Undecided
Unassigned

Bug Description

Reproduction steps:

1. Create a new document.
2. Draw a horizontal or vertical line using "Draw Bezier curves and straight lines" tool. Use Ctrl key to make sure it's horizontal or vertical.
3. Use Filters|Shadows and Glows|Drop shadow..., accept the default settings.

Expected result: a shadow should appear under the line.
Actual result: no shadow until I slightly affect the line angle.

I'm using 0.48.4 r9939 on Ubuntu 14.04.2. I'm attaching an example and a screenshot.

Tags: filters-svg
Revision history for this message
Bartosz Leper (bl-nero) wrote :
Revision history for this message
Bartosz Leper (bl-nero) wrote :
Revision history for this message
su_v (suv-lp) wrote :

To be expected (based on the description of filter effects in the current SVG 1.1 specification - the filter effects region is expressed in percentage of the geometric bounding box area of the filtered object - a horizontal or vertical line has zero height or width respectively, and the filter effect region thus too).

Known issue already tracked in
* Bug #168943 “Blurring a zero-height or zero-width path”
  https://bugs.launchpad.net/inkscape/+bug/168943

Linking as duplicate to bug #168943 (see comment 1-2 there).

tags: added: filters-svg
Revision history for this message
Bartosz Leper (bl-nero) wrote :

For anyone stumbling across a similar problem, I found a workaround:

1. Create a transparent rectangle with transparent stroke (i.e. an invisible one) so that it covers the line in question.
2. Group the rectangle with line.
3. Apply the shadow effect to the entire group.

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.