To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=93503





------- Additional comments from tantai_thanaka...@openoffice.org Fri Jul 16 
10:59:00 +0000 2010 -------
This the patch to fix this issue.

diff -rup OOO320_m19_ori/sc/source/filter/excel/xestyle.cxx
OOO320/sc/source/filter/excel/xestyle.cxx
--- OOO320_m19_ori/sc/source/filter/excel/xestyle.cxx   2010-05-26
23:30:44.000000000 +0700
+++ OOO320/sc/source/filter/excel/xestyle.cxx   2010-07-16 17:50:08.188256700 
+0700
@@ -1327,8 +1327,15 @@ String XclExpNumFmtBuffer::GetFormatCode
             }
 
             aFormatStr = pEntry->GetMappedFormatstring( *mpKeywordTable,
*mxFormatter->GetLocaleData() );
+            xub_StrLen pos;
             if( aFormatStr.EqualsAscii( "Standard" ) )
                 aFormatStr.AssignAscii( "General" );
+            else if( ( pos = aFormatStr.SearchAscii("[~buddhist]", 0) ) !=
STRING_NOTFOUND )
+                aFormatStr.ReplaceAscii( pos, 11, "[$-107041E]", 11 );
+            else if( ( pos = aFormatStr.SearchAscii("[~hijri]", 0) ) !=
STRING_NOTFOUND )
+                aFormatStr.ReplaceAscii( pos, 8, "[$-1060401]", 11);
+            else if( ( pos = aFormatStr.SearchAscii("[~persian]", 0) ) !=
STRING_NOTFOUND )
+                aFormatStr.ReplaceAscii( pos, 10, "[$-3060429]", 11 );
         }
     }
     else

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@sc.openoffice.org
For additional commands, e-mail: issues-h...@sc.openoffice.org


---------------------------------------------------------------------
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org

Reply via email to