mirror of
https://github.com/DreamSourceLab/DSView.git
synced 2025-02-02 13:52:55 +08:00
fix: the search cursor able move out off range
This commit is contained in:
parent
779825943e
commit
35af96b622
@ -72,8 +72,11 @@ uint64_t TimeMarker::index()
|
||||
return _index;
|
||||
}
|
||||
|
||||
void TimeMarker::set_index(uint64_t index)
|
||||
void TimeMarker::set_index(int64_t index)
|
||||
{
|
||||
if (index < 0){
|
||||
index = 0;
|
||||
}
|
||||
_index = index;
|
||||
time_changed();
|
||||
}
|
||||
|
@ -66,7 +66,7 @@ public:
|
||||
/**
|
||||
* Sets the time of the marker.
|
||||
*/
|
||||
void set_index(uint64_t index);
|
||||
void set_index(int64_t index);
|
||||
|
||||
/**
|
||||
* Gets/Sets colour of the marker
|
||||
|
Loading…
x
Reference in New Issue
Block a user