To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=73104
                 Issue #|73104
                 Summary|to-be-m199: long vs sal_Int32 in sw/source/core/txtnod
                        |e/fntcache.cxx
               Component|porting
                 Version|680m199
                Platform|All
                     URL|
              OS/Version|Linux
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|PATCH
                Priority|P1
            Subcomponent|code
             Assigned to|hr
             Reported by|pjanik





------- Additional comments from [EMAIL PROTECTED] Wed Jan  3 21:25:35 -0800 
2007 -------
unxlngx6:

/data/oo/BuildDir/ooo_SRC680_m199_src/sw/source/core/txtnode/fntcache.cxx: In 
member function 
'void SwFntObj::DrawText(SwDrawTextInfo&)':
/data/oo/BuildDir/ooo_SRC680_m199_src/sw/source/core/txtnode/fntcache.cxx:1767: 
error: cannot 
convert 'sal_Int32*' to 'long int*' for argument '11' to 'void 
lcl_calcLinePos(SwDrawTextInfo&, Font&, 
Point&, Point&, USHORT, USHORT, USHORT, BOOL, BOOL, long int, long int*, BOOL)'
/data/oo/BuildDir/ooo_SRC680_m199_src/sw/source/core/txtnode/fntcache.cxx:1811: 
error: cannot 
convert 'sal_Int32*' to 'long int*' for argument '11' to 'void 
lcl_calcLinePos(SwDrawTextInfo&, Font&, 
Point&, Point&, USHORT, USHORT, USHORT, BOOL, BOOL, long int, long int*, BOOL)'

This fixed it for me. Is it right fix?

--- sw.orig/source/core/txtnode/fntcache.cxx    2007-01-04 16:33:16.000000000 
+0100
+++ sw/source/core/txtnode/fntcache.cxx 2007-01-04 16:39:01.000000000 +0100
@@ -274,7 +274,7 @@
 
 void lcl_calcLinePos( SwDrawTextInfo& rInf, Font& rFont, Point& rStart, Point& 
rEnd, xub_StrLen nStart,
                       xub_StrLen nWrLen, xub_StrLen nCnt, const BOOL 
bSwitchH2V, const BOOL bSwitchL2R,
-                      long nHalfSpace, long* pKernArray, const BOOL bBidiPor)
+                      long nHalfSpace, sal_Int32* pKernArray, const BOOL 
bBidiPor)
 {
    rStart = Point( rInf.GetPos() );
    long nBlank = 0;
@@ -291,8 +291,8 @@
    }
 
    // determine start, end and length of wave line
-   long nKernStart = nStart ? pKernArray[ USHORT( nStart - 1 ) ] : 0;
-   long nKernEnd = pKernArray[ USHORT( nEnd - 1 ) ];
+   sal_Int32 nKernStart = nStart ? pKernArray[ USHORT( nStart - 1 ) ] : 0;
+   sal_Int32 nKernEnd = pKernArray[ USHORT( nEnd - 1 ) ];
 
    USHORT nDir = bBidiPor ? 1800 :
        UnMapDirection( rFont.GetOrientation(), bSwitchH2V );

---------------------------------------------------------------------
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to