Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
luyikei
VLMC
Commits
1613bcbf
Commit
1613bcbf
authored
Sep 04, 2009
by
Hugo Beauzee-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Solving crash when adding a clip, undo, redo, and finally moving the clip.
parent
cecae387
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
src/GUI/AbstractGraphicsMediaItem.h
src/GUI/AbstractGraphicsMediaItem.h
+1
-1
src/GUI/GraphicsCursorItem.cpp
src/GUI/GraphicsCursorItem.cpp
+1
-0
src/GUI/TracksView.cpp
src/GUI/TracksView.cpp
+1
-1
No files found.
src/GUI/AbstractGraphicsMediaItem.h
View file @
1613bcbf
...
...
@@ -63,7 +63,7 @@ protected:
/**
* Contains the old trackNumber
*/
int
oldTrackNumber
;
unsigned
int
oldTrackNumber
;
/**
* Contains the old position
*/
...
...
src/GUI/GraphicsCursorItem.cpp
View file @
1613bcbf
...
...
@@ -8,6 +8,7 @@ GraphicsCursorItem::GraphicsCursorItem( const QPen& pen )
setCursor
(
QCursor
(
Qt
::
SizeHorCursor
)
);
setZValue
(
100
);
// int height;
m_boundingRect
=
QRectF
(
-
2
,
0
,
3
,
height
);
}
...
...
src/GUI/TracksView.cpp
View file @
1613bcbf
...
...
@@ -146,6 +146,7 @@ void TracksView::addMediaItem( Clip* clip, unsigned int track, qint64 start )
item
->
setWidth
(
clip
->
getLength
()
);
item
->
setHeight
(
tracksHeight
()
);
item
->
setParentItem
(
getTrack
(
track
)
);
item
->
oldTrackNumber
=
track
;
moveMediaItem
(
item
,
track
,
start
);
}
...
...
@@ -371,7 +372,6 @@ void TracksView::dropEvent( QDropEvent* event )
clip
,
m_dragItem
->
trackNumber
(),
(
qint64
)
mappedXPos
)
);
m_dragItem
->
oldPosition
=
mappedXPos
;
m_dragItem
=
NULL
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment