forked from mia/Aegisub
Issue #504 - Fixed crash with rotation tools if no line was available for visual typesetting.
Originally committed to SVN as r1457.
This commit is contained in:
parent
c098e4d2a3
commit
ad601c46d1
1 changed files with 5 additions and 0 deletions
|
@ -340,6 +340,8 @@ void VisualTool::GetLinePosition(AssDialogue *diag,int &x, int &y, int &orgx, in
|
|||
if (!diag) {
|
||||
x = -1;
|
||||
y = -1;
|
||||
orgx = -1;
|
||||
orgy = -1;
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -496,6 +498,9 @@ void VisualTool::GetLineRotation(AssDialogue *diag,float &rx,float &ry,float &rz
|
|||
// Default values
|
||||
rx = ry = rz = 0.0f;
|
||||
|
||||
// No dialogue
|
||||
if (!diag) return;
|
||||
|
||||
// Prepare overrides
|
||||
diag->ParseASSTags();
|
||||
AssDialogueBlockOverride *override;
|
||||
|
|
Loading…
Reference in a new issue