Rectangle start marker - cannot turn off

Bug #420202 reported by pRototype
90
This bug affects 15 people
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
Medium
Unassigned

Bug Description

The failure seems quite similar to #168479. First I drawed a couple of simple lines with beizer curves/straight lines -tool. Then I added start markers on those lines. Then saved the file + exported selected objects, that is all objects I drawn, wich wasn't many.

Then I decided to draw a square around the drawing, but this square had also a start marker. When I select start markers - None, the start marker is still there.

Also I found that when I select start markers - None, if I alter any other settings - when I taka a look on the start markers, same symbol is still selected.

I guess the lines in the svg file that describes the rectangle is the most important, so I copied it from a text editor:

<rect
       style="color:#000000;fill:none;stroke:#000000;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:1,3;stroke-dashoffset:0;marker:none;marker-start:url(#EmptyDiamondM);visibility:visible;display:inline;overflow:visible;enable-background:accumulate;fill-opacity:1;opacity:1"
       id="rect5034"
       width="200"
       height="120.00001"
       x="20"
       y="12.362184"
       ry="15.652175"
       inkscape:export-xdpi="300"
       inkscape:export-ydpi="300" />

Tags: markers styles ui
pRototype (regeir)
description: updated
pRototype (regeir)
description: updated
Revision history for this message
su_v (suv-lp) wrote :

Cannot reproduce a new rectangle with a marker style attribute with Inkscape 0.46+devel r22173 on O S X 10.5.8 as described above but can confirm that a 'marker' style attribute of a rectangle cannot be changed or unset to 'None' in the 'Fill and Stroke' dialog.

Another way to reproduce:
1) draw path / line, set start marker
2) select line and copy (Ctrl+C)
3) draw rectangle
4) select rectangle and paste style (Shift+Ctrl+V)
result: rectangle has marker set but not rendered on canvas, the marker style attribute cannot be removed / changed in the 'Fill and Stroke' dialog.

tags: added: svg ui-dialogs-toolbars
Revision history for this message
su_v (suv-lp) wrote :

correction: (start) marker of rectangle _is_ rendered on canvas (tested in new drawing).

result of steps to reproduce (comment #1): rectangle has marker set and displayed, but the marker style attribute cannot be removed / changed in the 'Fill and Stroke' dialog

Changed in inkscape:
status: New → Confirmed
Revision history for this message
Granjow (simon-eu) wrote :

Also with custom markers at the end of lines. Have fun trying to remove it ;) Fortunately works via the XML editor.

Version: Inkscape 0.47 r22583, built Mar 12 2010

Revision history for this message
Granjow (simon-eu) wrote :

Additionally a problem is that to get rid of the marker you need to restart inkscape. Otherwise it adds one for every single new rectangle you draw.

su_v (suv-lp)
tags: added: markers styles ui
removed: svg ui-dialogs-toolbars
Revision history for this message
Cedders (cedric-gn) wrote :

One probably related issue. If you have a shape with start or end markers, copy it with Ctrl+C, and then paste the style onto another shape (including rectangle) or path, those markers are applied to the second shape. However, if you have a shape without markers, and paste its style onto a shape which already has markers, the markers on the second shape are not removed. This may be by design to avoid losing markers a user has chosen, but is inconsistent.

Another inconsistency is that when a shape has "create new objects with last used style" set in preferences, the new object is created with the current style. Changing stroke style of an object such as width and dashes updates the current style. However changes to markers of an object does not update the current style. Only Paste Style seems to update the marker settings of the current style. I think this is a bug.

This is what I'm seeing in Ubuntu lucid version (Inkscape 0.47 r22583, built Apr 4 2010):
1) Apply stroke style > markers to shape A
2) copy shape A
3) apply style to shape B (with Shift+Ctrl+V)
4) marker style is applied as expected to shape B
5) draw a rectangle C
6) the rectangle C is drawn with the start and end markers as applied to B
7) stroke style for rectangle C includes drop-down box for markers, but these have no effect (maybe should be greyed out)
8) all future rectangles are also drawn with start and end markers.

Best workaround is close document window then reopen document. Revert has no effect.

Revision history for this message
Cedders (cedric-gn) wrote :

I wanted to simplify the last comment.

In Inkscape 0.47:
A) The marker settings of the current style (arrowheads, tails and so on) are set when doing Paste Style.
B) The marker settings of the current style are not set when altering the Stroke Style of an object.
C) Once the marker settings of the current style are set, they cannot be set to "None" markers (by any method I could find).
D) The rectangle tool creates a rectangle using the marker settings of the current style.

I suggest C) and D) are undesirable, and either A) or B) is undesirable.

Also, there is a different workaround: File > Inkscape Preferences > Shapes > Rectangle. Click "This tools own style", click an unaffected rectangle without markers, and Take from Selection.

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

> Best workaround is close document window
> then reopen document. Revert has no effect.

…or use 'View > Duplicate Window', continue working in the duplicate window and close the original one. The marker(s) will no longer be part of the current style.

Changed in inkscape:
importance: Undecided → Medium
status: Confirmed → Triaged
Revision history for this message
pRototype (regeir) wrote :

0.48+devel r12217

Issue is still present.

It happends when the general settings for Rectangle object: "Style of new objects"=="Last used style" and when last used style actually was a path where start marker or end marker was other that "None".

I upload a sample document. Over the years I've being used Inkscape I got used to the XML editor, so I know that a workaround for this specific file is:
* Open XML editor when rectangle object is active.
* Find the "Style" atribute and open it for editing.
* Delete the excact string: "marker-start:url(#DotM-3)" (make sure there is not a double sami-colon, so delete either one before or after.

The contents of the Style attribute should then be excactly:
"color:#000000;color-interpolation:sRGB;color-interpolation-filters:linearRGB;fill:#e6e6e6;fill-opacity:0.72131144;fill-rule:nonzero;stroke:#0000ff;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:0.23497267;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate;clip-rule:nonzero"

Revision history for this message
Jef Lemaire (jeflemaire) wrote :

Still not fixed in Inkscape 0.91+devel r14524
This is an extremely annoying bug. It makes the tools with the "Last used style" setting set basically unusable as soon as one uses markers.

Revision history for this message
Shlomi Fish (shlomif-gmail) wrote :

The attached patch fixes the problem - at least in a workaround-like way. Perhaps a better solution would be to disable rectangles from acquiring markers/arrowheads in the first place.

summary: - Rectangle start marker - cannot turn of
+ Rectangle start marker - cannot turn off
Revision history for this message
Marc Kruzik (marc-kruzik) wrote :

Still not fixed in Inkscape 0.92.2 (5c3e80d, 2017-08-06). It's really hard to work with connectors if you can't copy paste their style due to this bug, or at least define their default style as asked in the following discussion:
https://bugs.launchpad.net/inkscape/+bug/1280096

To me, connectors are almost useless because of those problems, yet they are part of the toolbar. If anyone working with connectors have found a way to avoid those problems, I'm listening.

Revision history for this message
Nathan Lee (nathan.lee) wrote :

Closing as part of bug migration to GitLab.

Issue is still being tracked in https://gitlab.com/inkscape/inkscape/-/issues/1936 (which was split from https://gitlab.com/inkscape/inbox/-/issues/3037, another issue that was mentioned in this bug report)

Thanks for reporting!

Please feel free to file new bugs about the issues you're seeing at http://inkscape.org/report.

Changed in inkscape:
status: Triaged → Invalid
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.