From a7027a6bfa4cdc790b01a6ec2e9b181b8de0d500 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Wed, 15 Jan 2014 08:00:20 -0800 Subject: [PATCH] Hide visual tools for commented lines --- aegisub/src/visual_tool.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/aegisub/src/visual_tool.cpp b/aegisub/src/visual_tool.cpp index c1977252a..450d0de57 100644 --- a/aegisub/src/visual_tool.cpp +++ b/aegisub/src/visual_tool.cpp @@ -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) {