Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
audacity-kr-font
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hwanyong Lee
audacity-kr-font
Commits
302fb1f6
Commit
302fb1f6
authored
1 year ago
by
Paul Licameli
Committed by
Paul Licameli
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix crash when dragging clips between tracks with sync lock on
parent
d09510c9
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/tracks/ui/TimeShiftHandle.cpp
+7
-5
7 additions, 5 deletions
src/tracks/ui/TimeShiftHandle.cpp
with
7 additions
and
5 deletions
src/tracks/ui/TimeShiftHandle.cpp
+
7
−
5
View file @
302fb1f6
...
@@ -363,7 +363,10 @@ void ClipMoveState::Init(
...
@@ -363,7 +363,10 @@ void ClipMoveState::Init(
for
(
auto
pTrack2
:
group
)
{
for
(
auto
pTrack2
:
group
)
{
if
(
pTrack2
==
&
track
)
if
(
pTrack2
==
&
track
)
continue
;
continue
;
if
(
!
pTrack2
->
IsLeader
())
continue
;
// shifters maps from leader tracks only
auto
&
shifter2
=
*
shifters
[
pTrack2
];
auto
&
shifter2
=
*
shifters
[
pTrack2
];
auto
size
=
shifter2
.
MovingIntervals
().
size
();
auto
size
=
shifter2
.
MovingIntervals
().
size
();
shifter2
.
SelectInterval
(
*
interval
);
shifter2
.
SelectInterval
(
*
interval
);
...
@@ -832,8 +835,10 @@ UIHandle::Result TimeShiftHandle::Drag
...
@@ -832,8 +835,10 @@ UIHandle::Result TimeShiftHandle::Drag
const
wxMouseEvent
&
event
=
evt
.
event
;
const
wxMouseEvent
&
event
=
evt
.
event
;
auto
&
viewInfo
=
ViewInfo
::
Get
(
*
pProject
);
auto
&
viewInfo
=
ViewInfo
::
Get
(
*
pProject
);
auto
&
trackList
=
TrackList
::
Get
(
*
pProject
);
ChannelView
*
trackView
=
dynamic_cast
<
ChannelView
*>
(
evt
.
pCell
.
get
());
ChannelView
*
trackView
=
dynamic_cast
<
ChannelView
*>
(
evt
.
pCell
.
get
());
Track
*
track
=
trackView
?
trackView
->
FindTrack
().
get
()
:
nullptr
;
Track
*
track
=
*
trackList
.
FindLeader
(
trackView
?
trackView
->
FindTrack
().
get
()
:
nullptr
);
// Uncommenting this permits drag to continue to work even over the controls area
// Uncommenting this permits drag to continue to work even over the controls area
/*
/*
...
@@ -853,9 +858,6 @@ UIHandle::Result TimeShiftHandle::Drag
...
@@ -853,9 +858,6 @@ UIHandle::Result TimeShiftHandle::Drag
if
(
!
pTrack
)
if
(
!
pTrack
)
return
RefreshCode
::
RefreshNone
;
return
RefreshCode
::
RefreshNone
;
auto
&
trackList
=
TrackList
::
Get
(
*
pProject
);
// GM: slide now implementing snap-to
// GM: slide now implementing snap-to
// samples functionality based on sample rate.
// samples functionality based on sample rate.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment