Shape Type does not work correctly for Ellipse

Bug #1888872 reported by grofaty
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Pinta
Confirmed
Medium
Unassigned

Bug Description

Latest Pinta PPA update 1.7+r1106-202007230322~ubuntu18.04.1:

1. From Tools select Ellipse.
2. Draw ellipse on canvas.
3. From Shape Type select e.g. Open Line/Curve Series.
4. Now select any other option from Shape Type and it has no effect.

It looks like any option selected from Shape Type for the first time it works fine, but after first selection selecting any other option from Shape Type has no effect.

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

I additionally tested and problem is wider. What ever tool selected in step 1 like Rectangle, Rounded Rectangle or Ellipse and then the problem is the same.

Revision history for this message
Cameron White (cameronwhite91) wrote :

Yeah, it doesn't seem to update immediately. If I move one of the points around and then change shape types, it seems to take effect then.

Changed in pinta:
importance: Undecided → Medium
status: New → Confirmed
tags: added: line
tags: added: line-tool
removed: line
Revision history for this message
Deleted User (user5527-deactivatedaccount) wrote :

I tried to triage this bug, but I didn't come up with a fix. In BaseEditEngine.cs on line 381 there is a check if selEngine is null and that's why it fails. Using the menu to change shape is actually changing the tool which I think causes HandleDeactivated on line 437 to trigger.

Revision history for this message
Cameron White (cameronwhite91) wrote :

Yeah, I think HandleDeactivated occurs because it can switch between different tools (e.g. switching from the ellipse tool to the curve tool)
Maybe the SelectedPointIndex should also be restored to its original value after calling ActivateCorrespondingTool(), similar to SelectedShapeIndex?

Revision history for this message
Bartosz (zetizero) wrote :

Hi I already fixed this bug. Sorry I didn't see that this is open issue so I created my own.
https://bugs.launchpad.net/pinta/+bug/1993332
This issue should be closed.

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.