View Issue Details

IDProjectCategoryView StatusLast Update
0004683ardourbugspublic2020-04-19 20:16
Reportertophatdave Assigned Tocth103  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Summary0004683: MIDI note trim cursor incorrectly displayed when it shouldn't be
DescriptionWhen hovering near the end of MIDI notes in the editor, the "trim" cursor is incorrectly displayed in several mouse modes
Additional Informationi have attached a patch that normalizes the display of the trim cursor for the various mouse modes
TagsNo tags attached.

Activities

2012-02-02 17:03

 

trimcursorpatch.txt (905 bytes)   
Index: midi_region_view.cc
===================================================================
--- midi_region_view.cc (revision 11419)
+++ midi_region_view.cc (working copy)
@@ -3067,9 +3067,11 @@
 {
        Editor* editor = dynamic_cast<Editor*>(&trackview.editor());
 
-       if (x_fraction > 0.0 && x_fraction < 0.2) {
+       Editing::MouseMode mm = editor->current_mouse_mode();
+       bool trimmable = (mm == MouseObject || mm == MouseTimeFX || mm == MouseRange);
+       if (trimmable && x_fraction > 0.0 && x_fraction < 0.2) {
                editor->set_canvas_cursor (editor->cursors()->left_side_trim);
-       } else if (x_fraction >= 0.8 && x_fraction < 1.0) {
+       } else if (trimmable && x_fraction >= 0.8 && x_fraction < 1.0) {
                editor->set_canvas_cursor (editor->cursors()->right_side_trim);
        } else {
                if (pre_enter_cursor && can_set_cursor) {
trimcursorpatch.txt (905 bytes)   

cth103

2012-02-03 12:24

administrator   ~0012752

Applied to SVN. Thanks!

system

2020-04-19 20:16

developer   ~0022954

Issue has been closed automatically, by Trigger Close Plugin.
Feel free to re-open with additional information if you think the issue is not resolved.

Issue History

Date Modified Username Field Change
2012-02-02 17:03 tophatdave New Issue
2012-02-02 17:03 tophatdave File Added: trimcursorpatch.txt
2012-02-03 12:24 cth103 cost => 0.00
2012-02-03 12:24 cth103 Note Added: 0012752
2012-02-03 12:24 cth103 Status new => resolved
2012-02-03 12:24 cth103 Resolution open => fixed
2012-02-03 12:24 cth103 Assigned To => cth103
2020-04-19 20:16 system Note Added: 0022954
2020-04-19 20:16 system Status resolved => closed