[ooo-build-commit] patches/dev300

Kohei Yoshida kohei at kemper.freedesktop.org
Tue Oct 13 08:43:03 PDT 2009


 patches/dev300/calc-general-type-auto-decimal-sc.diff |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1919b69d914a364cfeeadc6803346385cfc36399
Author: Kohei Yoshida <kyoshida at novell.com>
Date:   Tue Oct 13 11:42:09 2009 -0400

    Correctly check for the General number format type.
    
    * patches/dev300/calc-general-type-auto-decimal-sc.diff: changed
      based on Eike's comment in i#46511.

diff --git a/patches/dev300/calc-general-type-auto-decimal-sc.diff b/patches/dev300/calc-general-type-auto-decimal-sc.diff
index c0a4db1..574f880 100644
--- a/patches/dev300/calc-general-type-auto-decimal-sc.diff
+++ b/patches/dev300/calc-general-type-auto-decimal-sc.diff
@@ -73,7 +73,7 @@ index 8942a38..5826bb1 100644
 -                                     pOutput->bShowFormulas,
 -                                     ftCheck );
 +
-+            if (static_cast<NfIndexTableOffset>(nFormat) == NF_NUMBER_STANDARD)
++            if ((nFormat % SV_COUNTRY_LANGUAGE_OFFSET) == 0)
 +                // For 'General' format type, display the value the same way it
 +                // is displayed in the edit window, which automatically
 +                // adjusts the number of decimal places based on the value of


More information about the ooo-build-commit mailing list