Marker color does not change when stroke color is changed.

Bug #1431856 reported by Joe Smerdon
56
This bug affects 11 people
Affects Status Importance Assigned to Milestone
Inkscape
Triaged
Medium
Unassigned

Bug Description

I copy a line with markers. I then change the stroke color of the line, but the markers retain the old color. I know that that always happened until you 'color markers to match stroke', but it seems from the release notes of 0.91 that it oughtn't to happen any more, and, of course, the 'color markers to match stroke' is gone from the menu.

I can change the marker color by reselecting the marker from the drop-down list. When I do this, it switches to the new stroke color. So this is just nonoptimal behavior, not a dealbreaker.

Tags: color markers
Revision history for this message
jazzynico (jazzynico) wrote :

Not reproduced on Windows XP, Inkscape 0.91 and trunk revision 14005.

Could you please give details on your operating system and attach an SVG example file that shows the issue?

Changed in inkscape:
status: New → Incomplete
Revision history for this message
Ryo Furue (furue) wrote :

I have the same problem on Inkscape 0.91 on Mac OS 10.10.2 .

I open an existing SVG file created with Inkscape 0.4x, add a path, add an arrow head to it, and change its "Stroke paint". The arrow head remains black. This doesn't always happen. Even in the same plot, some arrow heads change colors and others don't.

I'm not sure, but it *seems* that once it starts, you are no longer able to draw new paths whose arrowheads obey the stroke colors. I'm currently at such a stage. I then save the plot, quit Inkscape, and open the plot again. Nope. I'm no longer able to draw new paths whose arrowheads obey the stroke colors.

Going back to Inkscape 0.48.5 .

Regards,

Ryo

Revision history for this message
jazzynico (jazzynico) wrote :

Not reproduced on Crunchbang Waldorf, Inkscape trunk rev. 14007.

@Joe, Ryo - Would you be willing to attach an example SVG file showing the bug so that we could investigate?

Changed in inkscape:
importance: Undecided → Medium
Revision history for this message
Joe Smerdon (joesmerdon) wrote :

Hi,

attached is a file containing lines it doesn't happen for, and lines it does happen for. The lines it does happen for are copied from another document which was originally made using 0.48.

I'm using 0.91 on a Mac 10.10.2 via macports and X11 2.7.7.

Joe

Revision history for this message
jazzynico (jazzynico) wrote :

Thanks for the test file!

The affected markers are missing the inkscape:isstock="true" attribute in their definition. Not surprising since it's a new attribute added in 0.91 (rev. 11671) to fix Bug #165865 "Fix marker color on duplicate".

Adding the attribute to the SVG code manually fixes the issue, but it's only a workaround.

Changed in inkscape:
status: Incomplete → Triaged
milestone: none → 0.92
Revision history for this message
Alistair Muldal (alimuldal) wrote :

I am seeing a related issue in 0.91 r13725. If I select many lines at once and then change their stroke colours simultaneously, the marker colour is only updated for the last line I selected. I can force the other lines to update their marker colours to match the new stroke colour by selecting each one individually, but this gets very tedious when I have a large number of lines to modify.

Revision history for this message
Ryo Furue (furue) wrote :

jazzynico said

> Adding the attribute to the SVG code manually fixes the issue

Could you or somebody provide an instruction on how to do this?

I'm editing an Inkscape SVG file and cannot change the arrowhead color at all. I'm using 0.91. Perhaps the file I'm editing may have been originally produced with 0.4x .

I don't want to redo everything on 0.91.

Revision history for this message
Joe Smerdon (joesmerdon) wrote :

> Could you or somebody provide an instruction on how to do this?

Load the svg file into a text editor (Notepad++ or TextMate).

Search for:
<marker

and replace with
<marker
inkscape:isstock="true"

(On TextMate, you can enter a multiline replace by pressing <Alt>-Return. Don't know about Notepad++)

Revision history for this message
jazzynico (jazzynico) wrote :

Not sure it can be easily fixed, but at least we could try to detect stock markers (based on the marker's name) and automatically add the missing attribute.

Changed in inkscape:
milestone: 0.92 → 0.93
Revision history for this message
Michael (mangelozzi) wrote :

This issue is still present in v1.0.2 on Windows 10 2004.

Revision history for this message
Martin (lithium694) wrote :

This issue is still present in Inkscape 1.1 (c68e22c387, 2021-05-23) Windows 10 Build 19041

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Bug attachments

Remote bug watches

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