[Libreoffice-commits] .: Branch 'libreoffice-3-6' - filter/source
Kohei Yoshida
kohei at kemper.freedesktop.org
Tue Jun 5 12:55:21 PDT 2012
filter/source/config/cache/typedetection.cxx | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit ae306e093a323f3233eea11a71f472ec7f89cf69
Author: Kohei Yoshida <kohei.yoshida at gmail.com>
Date: Tue Jun 5 15:53:31 2012 -0400
Prioritize external filters over the internal ones.
Change-Id: I2407a2ebc01f39655b30f7eb1e65deb912f2e606
diff --git a/filter/source/config/cache/typedetection.cxx b/filter/source/config/cache/typedetection.cxx
index 672a09f..c831935 100644
--- a/filter/source/config/cache/typedetection.cxx
+++ b/filter/source/config/cache/typedetection.cxx
@@ -196,8 +196,9 @@ int getFlatTypeRank(const rtl::OUString& rType)
return n - i - 1;
}
- // Not ranked. Treat them equally.
- return -1;
+ // Not ranked. Treat them equally. Unranked filters have higher priority
+ // than the ranked internal ones since they may be external filters.
+ return n;
}
/**
More information about the Libreoffice-commits
mailing list