Shape Type does not work correctly for Ellipse

Bug #1888872 reported by grofaty
This bug affects 1 person
Affects Status Importance Assigned to Milestone

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
pikachuiscool2 (pikachuiscool2) 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?

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

Other bug subscribers