rpms/openoffice.org/F-8 openoffice.org-2.3.0.ooo86882.vcl.unsigned_int_to_long.patch, NONE, 1.1 openoffice.org.spec, 1.1349, 1.1350

Caolan McNamara (caolanm) fedora-extras-commits at redhat.com
Mon Mar 10 15:47:25 UTC 2008


Author: caolanm

Update of /cvs/pkgs/rpms/openoffice.org/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv16819

Modified Files:
	openoffice.org.spec 
Added Files:
	openoffice.org-2.3.0.ooo86882.vcl.unsigned_int_to_long.patch 
Log Message:
Resolves: rhbz#429632 add openoffice.org-2.3.0.ooo86882.vcl.unsigned_int_to_long.patch

openoffice.org-2.3.0.ooo86882.vcl.unsigned_int_to_long.patch:

--- NEW FILE openoffice.org-2.3.0.ooo86882.vcl.unsigned_int_to_long.patch ---
Index: unx/gtk/window/gtkframe.cxx
===================================================================
RCS file: /cvs/gsl/vcl/unx/gtk/window/gtkframe.cxx,v
retrieving revision 1.72.8.2
diff -u -r1.72.8.2 gtkframe.cxx
--- openoffice.org.orig/vcl/unx/gtk/window/gtkframe.cxx	23 Jan 2008 17:17:10 -0000	1.72.8.2
+++ openoffice.org/vcl/unx/gtk/window/gtkframe.cxx	10 Mar 2008 15:32:32 -0000
@@ -1158,8 +1169,8 @@
 
     if( m_pParent )
     {
-        nX = ((long)m_pParent->maGeometry.nWidth - (long)maGeometry.nWidth)/2;
-        nY = ((long)m_pParent->maGeometry.nHeight - (long)maGeometry.nHeight)/2;
+        nX = ((int)m_pParent->maGeometry.nWidth - (int)maGeometry.nWidth)/2;
+        nY = ((int)m_pParent->maGeometry.nHeight - (int)maGeometry.nHeight)/2;
 
     }
     else
@@ -1191,8 +1202,8 @@
                     break;
                 }
         }
-        nX = nScreenX + (nScreenWidth - (long)maGeometry.nWidth)/2;
-        nY = nScreenY + (nScreenHeight - (long)maGeometry.nHeight)/2;
+        nX = nScreenX + (nScreenWidth - (int)maGeometry.nWidth)/2;
+        nY = nScreenY + (nScreenHeight - (int)maGeometry.nHeight)/2;
     }
     SetPosSize( nX, nY, 0, 0, SAL_FRAME_POSSIZE_X | SAL_FRAME_POSSIZE_Y );
 }
@@ -1426,25 +1438,25 @@
         Size aScreenSize = GetX11SalData()->GetDisplay()->GetScreenSize( m_nScreen ); 
         if( ! (m_nStyle & SAL_FRAME_STYLE_OWNERDRAWDECORATION) )
         {
-            if( nX < (long)maGeometry.nLeftDecoration )
+            if( nX < (int)maGeometry.nLeftDecoration )
                 nX = maGeometry.nLeftDecoration;
-            if( nY < (long)maGeometry.nTopDecoration )
+            if( nY < (int)maGeometry.nTopDecoration )
                 nY = maGeometry.nTopDecoration;
-            if( (nX + (long)maGeometry.nWidth + (long)maGeometry.nRightDecoration) > (long)aScreenSize.Width() )
+            if( (nX + (int)maGeometry.nWidth + (int)maGeometry.nRightDecoration) > aScreenSize.Width() )
                 nX = aScreenSize.Width() - maGeometry.nWidth - maGeometry.nRightDecoration;
-            if( (nY + (long)maGeometry.nHeight + (long)maGeometry.nBottomDecoration) > (long)aScreenSize.Height() )
+            if( (nY + (int)maGeometry.nHeight + (int)maGeometry.nBottomDecoration) > aScreenSize.Height() )
                 nY = aScreenSize.Height() - maGeometry.nHeight - maGeometry.nBottomDecoration;
         }
         else
         {
-            if( nX + (long)maGeometry.nWidth < 10 )
-                nX = 10 - (long)maGeometry.nWidth;
-            if( nY + (long)maGeometry.nHeight < 10 )
-                nY = 10 - (long)maGeometry.nHeight;
-            if( nX > (long)aScreenSize.Width() - 10 )
-                nX = (long)aScreenSize.Width() - 10;
-            if( nY > (long)aScreenSize.Height() - 10 )
-                nY = (long)aScreenSize.Height() - 10;
+            if( nX + (int)maGeometry.nWidth < 10 )
+                nX = 10 - (int)maGeometry.nWidth;
+            if( nY + (int)maGeometry.nHeight < 10 )
+                nY = 10 - (int)maGeometry.nHeight;
+            if( nX > aScreenSize.Width() - 10 )
+                nX = aScreenSize.Width() - 10;
+            if( nY > aScreenSize.Height() - 10 )
+                nY = aScreenSize.Height() - 10;
         }
 
         if( nX != maGeometry.nX || nY != maGeometry.nY )
Index: unx/source/window/salframe.cxx
===================================================================
RCS file: /cvs/gsl/vcl/unx/source/window/salframe.cxx,v
retrieving revision 1.219.110.3
diff -u -r1.219.110.3 salframe.cxx
--- openoffice.org.orig/vcl/unx/source/window/salframe.cxx	25 Jan 2008 16:37:31 -0000	1.219.110.3
+++ openoffice.org/unx/source/window/salframe.cxx	10 Mar 2008 15:32:43 -0000
@@ -1714,14 +1714,14 @@
                 }
                 
                 // adjust position so that frame fits onto screen
-                if( aPosSize.Right()+(long)aGeom.nRightDecoration > aScreenSize.Width()-1 )
-                    aPosSize.Move( (long)aScreenSize.Width() - (long)aPosSize.Right() - (long)aGeom.nRightDecoration, 0 );
-                if( aPosSize.Bottom()+(long)aGeom.nBottomDecoration > aScreenSize.Height()-1 )
-                    aPosSize.Move( 0, (long)aScreenSize.Height() - (long)aPosSize.Bottom() - (long)aGeom.nBottomDecoration );
-                if( aPosSize.Left() < (long)aGeom.nLeftDecoration )
-                    aPosSize.Move( (long)aGeom.nLeftDecoration - (long)aPosSize.Left(), 0 );
-                if( aPosSize.Top() < (long)aGeom.nTopDecoration )
-                    aPosSize.Move( 0, (long)aGeom.nTopDecoration - (long)aPosSize.Top() );
+                if( aPosSize.Right()+(int)aGeom.nRightDecoration > aScreenSize.Width()-1 )
+                    aPosSize.Move( aScreenSize.Width() - aPosSize.Right() - (int)aGeom.nRightDecoration, 0 );
+                if( aPosSize.Bottom()+(int)aGeom.nBottomDecoration > aScreenSize.Height()-1 )
+                    aPosSize.Move( 0, aScreenSize.Height() - aPosSize.Bottom() - (int)aGeom.nBottomDecoration );
+                if( aPosSize.Left() < (int)aGeom.nLeftDecoration )
+                    aPosSize.Move( (int)aGeom.nLeftDecoration - aPosSize.Left(), 0 );
+                if( aPosSize.Top() < (int)aGeom.nTopDecoration )
+                    aPosSize.Move( 0, (int)aGeom.nTopDecoration - aPosSize.Top() );
             }
             
             // resize with new args


Index: openoffice.org.spec
===================================================================
RCS file: /cvs/pkgs/rpms/openoffice.org/F-8/openoffice.org.spec,v
retrieving revision 1.1349
retrieving revision 1.1350
diff -u -r1.1349 -r1.1350
--- openoffice.org.spec	9 Mar 2008 11:29:42 -0000	1.1349
+++ openoffice.org.spec	10 Mar 2008 15:46:33 -0000	1.1350
@@ -168,6 +168,7 @@
 Patch86: openoffice.org-2.4.0.ooo85931.svx.getentrypos.patch
 Patch87: openoffice.org-2.3.1.ooo83878.unopkg.enablelinking.patch
 Patch88: openoffice.org-2.4.0.ooo86080.unopkg.bodge.patch
+Patch89: openoffice.org-2.3.0.ooo86882.vcl.unsigned_int_to_long.patch
 
 %define instdir %{_libdir}/openoffice.org
 
@@ -1131,6 +1132,7 @@
 %patch86 -p1 -b .ooo85931.svx.getentrypos.patch
 %patch87 -p1 -b .ooo83878.unopkg.enablelinking.patch
 %patch88 -p1 -b .ooo86080.unopkg.bodge.patch
+%patch89 -p1 -b .ooo86882.vcl.unsigned_int_to_long.patch
 
 %if %{linkopt}
 chmod a+x solenv/bin/mklinkscript.pl
@@ -2852,6 +2854,7 @@
 - Resolves: rhbz#429897 one click print with lpr-only backend fix
 - Resolves: rhbz#431606 require jre not java
 - Resolves: rhbz#431805 openoffice.org-2.4.0.ooo85931.svx.getentrypos.patch
+- Resolves: rhbz#429632 add openoffice.org-2.3.0.ooo86882.vcl.unsigned_int_to_long.patch
 - add openoffice.org-2.4.0.ooo86080.unopkg.bodge.patch
 - add openoffice.org-2.3.1.ooo83878.unopkg.enablelinking.patch
 




More information about the fedora-extras-commits mailing list