Line dashing all but two display continues line

Bug #1959032 reported by grofaty
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Pinta
Fix Released
Undecided
Unassigned

Bug Description

Pinta/master and Pinta/2.0.2 on Ubuntu 20.04.

1. Select Line/Curve and change Brush width to 30, to easily follow.
2. Draw line and select Dash first one. Works as expected solid line
3. Now use other dashes and all but two are actually dashed lines, others are solid lines.

I remember this was working fine not so long ago. See attachment.

Tags: line-tool
Revision history for this message
grofaty (grofaty) wrote :
Revision history for this message
Cameron White (cameronwhite91) wrote :

Testing on Pinta 1.7 this behaves the same, so at least it's not a GTK3 bug ..

Changed in pinta:
status: New → Confirmed
tags: added: line-tool
Revision history for this message
Cameron White (cameronwhite91) wrote :

Looking into the issues with dashes, this broke from the changes for bug 1922470

The different line cap styles have quite different behaviour in combination with dashes (https://www.cairographics.org/manual/cairo-cairo-t.html#cairo-set-dash), e.g. a length of 0.0 can actually draw a square

We could either find an alternative fix for the previous issue, or adjust how the dash patterns are translated to cairo to accommodate the line cap style.

Changed in pinta:
status: Confirmed → Triaged
Revision history for this message
grofaty (grofaty) wrote :

May I suggest to temporally remove all of the non-working dashes from menu and release Pinta 2.1.
Probably after Pinta 2.1 release, when we figure it out how to fix this problem, then re-add them to menu again.

Revision history for this message
Cameron White (cameronwhite91) wrote :
Changed in pinta:
milestone: none → 2.1
status: Triaged → Fix Committed
Revision history for this message
grofaty (grofaty) wrote :

I tested latest Pinta 2.1-dev on Ubuntu 22.10 and I see this dashing problem fixed.

Just a little note. What I see now is when rectangle is drawn, mouse released and moved away from object, and move mouse back to rectangle edge and now arrow icon appears. Before this merge it was hand icon. Actually I like this tip arrow point mouse icon more, because it more precisely determinants where exactly rectangle is going to be curved (at tip point of point arrow).

grofaty (grofaty)
Changed in pinta:
status: Fix Committed → 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.