Hide visual tools for commented lines

This commit is contained in:
Thomas Goyne 2014-01-15 08:00:20 -08:00
parent cc829b2322
commit a7027a6bfa
1 changed files with 4 additions and 4 deletions

View File

@ -116,10 +116,10 @@ void VisualToolBase::OnActiveLineChanged(AssDialogue *new_line) {
bool VisualToolBase::IsDisplayed(AssDialogue *line) const {
int frame = c->videoController->GetFrameN();
return
line &&
c->videoController->FrameAtTime(line->Start, agi::vfr::START) <= frame &&
c->videoController->FrameAtTime(line->End, agi::vfr::END) >= frame;
return line
&& !line->Comment
&& c->videoController->FrameAtTime(line->Start, agi::vfr::START) <= frame
&& c->videoController->FrameAtTime(line->End, agi::vfr::END) >= frame;
}
void VisualToolBase::Commit(wxString message) {