mirror of https://github.com/odrling/Aegisub
Some random changes that I didn't have committed
Originally committed to SVN as r1224.
This commit is contained in:
parent
3e2ff3da77
commit
cec8828bb2
|
@ -66,8 +66,11 @@ SubtitlesPreview::SubtitlesPreview(wxWindow *parent,int id,wxPoint pos,wxSize si
|
|||
// Destructor
|
||||
SubtitlesPreview::~SubtitlesPreview() {
|
||||
delete bmp;
|
||||
bmp = NULL;
|
||||
delete style;
|
||||
style = NULL;
|
||||
delete vid;
|
||||
vid = NULL;
|
||||
}
|
||||
|
||||
|
||||
|
@ -158,8 +161,11 @@ void SubtitlesPreview::UpdateBitmap(int w,int h) {
|
|||
subs->AddLine(_T("Dialogue: 0,0:00:00.00,0:00:05.00,Preview,,0000,0000,0000,,{\\q2}") + showText,_T("[Events]"),0,ver,&outGroup);
|
||||
|
||||
// Apply subtitles
|
||||
try {
|
||||
provider->LoadSubtitles(subs);
|
||||
provider->DrawSubtitles(frame,0.1);
|
||||
}
|
||||
catch (...) {}
|
||||
delete provider;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue