[ooo-build-commit] .: patches/dev300

Kohei Yoshida kohei at kemper.freedesktop.org
Mon Sep 27 08:47:11 PDT 2010


 patches/dev300/apply                             |    3 ++
 patches/dev300/calc-toggle-relative-ref-fix.diff |   28 +++++++++++++++++++++++
 2 files changed, 31 insertions(+)

New commits:
commit 7cba64bc12911923586e0cb24cf6bed870620f5f
Author: Kohei Yoshida <kyoshida at novell.com>
Date:   Mon Sep 27 11:45:53 2010 -0400

    Fixes failure to toggle between relative and absolute references.
    
    This fixes n#634260.  Toggling between relative and absolute references
    is done via Shift-F4.

diff --git a/patches/dev300/apply b/patches/dev300/apply
index 5399ba4..af9fb43 100644
--- a/patches/dev300/apply
+++ b/patches/dev300/apply
@@ -2973,3 +2973,6 @@ oox-pptx-import-fix-text-body-properties.diff, n#621744, rodo
 
 # Fix the bug that caused cell content to disappear under certain conditions.
 calc-cell-270-degree-fix.diff, n#640128, kohei
+
+# Fix failure to toggle relative/absolute references via Shift-F4.
+calc-toggle-relative-ref-fix.diff, n#634260, kohei
diff --git a/patches/dev300/calc-toggle-relative-ref-fix.diff b/patches/dev300/calc-toggle-relative-ref-fix.diff
new file mode 100644
index 0000000..1cd0fd9
--- /dev/null
+++ b/patches/dev300/calc-toggle-relative-ref-fix.diff
@@ -0,0 +1,28 @@
+diff --git sc/source/core/tool/reffind.cxx sc/source/core/tool/reffind.cxx
+index 5e30e16..166833d 100644
+--- sc/source/core/tool/reffind.cxx
++++ sc/source/core/tool/reffind.cxx
+@@ -43,14 +43,21 @@
+ 
+ //	incl. Doppelpunkt -> Doppelte Referenzen werden einzeln behandelt
+ const sal_Unicode __FAR_DATA ScRefFinder::pDelimiters[] = {
+-    '=','(',')',';','+','-','*','/','^','&',' ','{','}','<','>',':', 0
++    '=','(',')','+','-','*','/','^','&',' ','{','}','<','>',':', 0
+ };
+ 
+ // =======================================================================
+ 
+ inline BOOL IsText( sal_Unicode c )
+ {
+-    return !ScGlobal::UnicodeStrChr( ScRefFinder::pDelimiters, c );
++    bool bFound = ScGlobal::UnicodeStrChr( ScRefFinder::pDelimiters, c );
++    if (bFound)
++        // This is one of delimiters, therefore not text.
++        return false;
++
++    // argument separator is configurable.
++    const sal_Unicode sep = ScCompiler::GetNativeSymbol(ocSep).GetChar(0);
++    return c != sep;
+ }
+ 
+ inline BOOL IsText( BOOL& bQuote, sal_Unicode c )


More information about the ooo-build-commit mailing list