mirror of
https://github.com/odrling/Aegisub
synced 2025-04-11 22:56:02 +02:00
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
@ -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…
x
Reference in New Issue
Block a user