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

New commits:
commit 611472edb12ba1d8a38bda1857c952eef0bb3568
Author: Fridrich Å trba <fridrich.st...@bluewin.ch>
Date:   Thu Jan 26 14:30:24 2012 +0100

    Sort the catch-all detection at the end
    
    Signed-off-by: Cédric Bosdonnat <cedric.bosdonnat....@free.fr>

diff --git a/filter/source/config/cache/typedetection.cxx 
b/filter/source/config/cache/typedetection.cxx
index cc91746..25b3742 100644
--- a/filter/source/config/cache/typedetection.cxx
+++ b/filter/source/config/cache/typedetection.cxx
@@ -814,9 +814,9 @@ namespace
         if (rA == rB)
             return false;
         if 
(rA.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("com.sun.star.text.FormatDetector")))
-            return true;
-        if 
(rB.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("com.sun.star.text.FormatDetector")))
             return false;
+        if 
(rB.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("com.sun.star.text.FormatDetector")))
+            return true;
         return rA < rB;
     }
 }
_______________________________________________
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to