Hide visual tools for commented lines
This commit is contained in:
parent
cc829b2322
commit
a7027a6bfa
1 changed files with 4 additions and 4 deletions
|
@ -116,10 +116,10 @@ void VisualToolBase::OnActiveLineChanged(AssDialogue *new_line) {
|
||||||
|
|
||||||
bool VisualToolBase::IsDisplayed(AssDialogue *line) const {
|
bool VisualToolBase::IsDisplayed(AssDialogue *line) const {
|
||||||
int frame = c->videoController->GetFrameN();
|
int frame = c->videoController->GetFrameN();
|
||||||
return
|
return line
|
||||||
line &&
|
&& !line->Comment
|
||||||
c->videoController->FrameAtTime(line->Start, agi::vfr::START) <= frame &&
|
&& c->videoController->FrameAtTime(line->Start, agi::vfr::START) <= frame
|
||||||
c->videoController->FrameAtTime(line->End, agi::vfr::END) >= frame;
|
&& c->videoController->FrameAtTime(line->End, agi::vfr::END) >= frame;
|
||||||
}
|
}
|
||||||
|
|
||||||
void VisualToolBase::Commit(wxString message) {
|
void VisualToolBase::Commit(wxString message) {
|
||||||
|
|
Loading…
Reference in a new issue