filter/source/config/cache/typedetection.cxx |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit eed0a0b26b9d61d26c888423c4e3d83b61728e3f
Author: Kohei Yoshida <kohei.yosh...@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;
 }
 
 /**
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to