mirror of
https://github.com/odrling/Aegisub
synced 2025-04-11 22:56:02 +02:00
Fixed crash on charset detection.
Originally committed to SVN as r1811.
This commit is contained in:
parent
ed29ba8f8b
commit
d50c3575f9
@ -69,6 +69,7 @@ wxString CharSetDetect::GetEncoding(wxString filename) {
|
||||
// Grab every result obtained
|
||||
std::list<CharDetResult> results;
|
||||
for (int i=0;i<NUM_OF_CHARSET_PROBERS;i++) {
|
||||
if (mCharSetProbers[i]) {
|
||||
int probes = mCharSetProbers[i]->GetProbeCount();
|
||||
for (int j=0;j<probes;j++) {
|
||||
float conf = mCharSetProbers[i]->GetConfidence(j);
|
||||
@ -81,6 +82,7 @@ wxString CharSetDetect::GetEncoding(wxString filename) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// If you got more than one valid result, ask the user which he wants
|
||||
if (results.size() > 1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user