From da6c47c20b6bd90a7c97e64dd563e33ebebe50f7 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Tue, 1 Jun 2010 03:21:20 +0000 Subject: [PATCH] Load rotation from a line's style when it's not set by an override tag. Originally committed to SVN as r4387. --- aegisub/src/visual_tool.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/aegisub/src/visual_tool.cpp b/aegisub/src/visual_tool.cpp index 568181890..872ad1f19 100644 --- a/aegisub/src/visual_tool.cpp +++ b/aegisub/src/visual_tool.cpp @@ -581,6 +581,11 @@ void VisualTool::GetLineRotation(AssDialogue *diag,float &rx,float // No dialogue if (!diag) return; + AssStyle *style = VideoContext::Get()->grid->ass->GetStyle(diag->Style); + if (style) { + rz = style->angle; + } + // Prepare overrides diag->ParseASSTags(); AssDialogueBlockOverride *override;