[Libreoffice-commits] .: Branch 'libreoffice-3-5-0' - filter/source

Cédric Bosdonnat cbosdo at kemper.freedesktop.org
Thu Jan 26 08:26:42 PST 2012


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

New commits:
commit 611472edb12ba1d8a38bda1857c952eef0bb3568
Author: Fridrich Å trba <fridrich.strba at 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.ooo at 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;
     }
 }


More information about the Libreoffice-commits mailing list