Removed silly PPMTranslator hack because it caused issues with the Haiku RTF-Translator and it really never should have been added in the first place.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10586 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -577,17 +577,6 @@ BTranslatorRoster::Identify(BPositionIO *inSource,
|
|||||||
|
|
||||||
if (addmatch) {
|
if (addmatch) {
|
||||||
weight = tmpInfo.quality * tmpInfo.capability;
|
weight = tmpInfo.quality * tmpInfo.capability;
|
||||||
|
|
||||||
// Since many kinds of data can look like text,
|
|
||||||
// don't choose the text format if it has been identified
|
|
||||||
// as belonging to a different group.
|
|
||||||
if (bFoundMatch && outInfo->group == B_TRANSLATOR_TEXT &&
|
|
||||||
tmpInfo.group != B_TRANSLATOR_TEXT)
|
|
||||||
bestWeight = 0.0;
|
|
||||||
else if (bFoundMatch && tmpInfo.group == B_TRANSLATOR_TEXT &&
|
|
||||||
outInfo->group != B_TRANSLATOR_TEXT)
|
|
||||||
weight = 0.0;
|
|
||||||
|
|
||||||
if (weight > bestWeight) {
|
if (weight > bestWeight) {
|
||||||
bFoundMatch = true;
|
bFoundMatch = true;
|
||||||
bestWeight = weight;
|
bestWeight = weight;
|
||||||
|
|||||||
Reference in New Issue
Block a user