rpms/openoffice.org/devel openoffice.org-2.3.0.ooo86882.vcl.unsigned_int_to_long.patch, NONE, 1.1 openoffice.org.spec, 1.1443, 1.1444
Caolan McNamara (caolanm)
fedora-extras-commits at redhat.com
Mon Mar 10 15:45:22 UTC 2008
Author: caolanm
Update of /cvs/pkgs/rpms/openoffice.org/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv16695
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/devel/openoffice.org.spec,v
retrieving revision 1.1443
retrieving revision 1.1444
diff -u -r1.1443 -r1.1444
--- openoffice.org.spec 10 Mar 2008 09:43:36 -0000 1.1443
+++ openoffice.org.spec 10 Mar 2008 15:44:25 -0000 1.1444
@@ -1,6 +1,6 @@
%define oootag OOH680
%define ooomilestone 10
-%define rh_rpm_release 1
+%define rh_rpm_release 2
# undef to get english only and no-langpacks for a faster smoketest build
%define langpacks 1
@@ -145,6 +145,7 @@
Patch71: openoffice.org-2.4.0.ooo86080.unopkg.bodge.patch
Patch72: openoffice.org-2.4.0.oooXXXXX.psprint.debugcups.patch
Patch73: openoffice.org-2.3.0.ooo86866.embeddedobj.plusequalsoperator.patch
+Patch74: openoffice.org-2.3.0.ooo86882.vcl.unsigned_int_to_long.patch
%define instdir %{_libdir}/openoffice.org
@@ -1103,6 +1104,7 @@
%patch71 -p1 -b .ooo86080.unopkg.bodge.patch
%patch72 -p1 -b .oooXXXXX.psprint.debugcups.patch
%patch73 -p1 -b .ooo86866.embeddedobj.plusequalsoperator.patch
+%patch74 -p1 -b .ooo86882.vcl.unsigned_int_to_long.patch
%build
echo build start time is `date`, diskspace: `df -h . | tail -n 1`
@@ -2873,6 +2875,9 @@
%changelog
+* Mon Mar 10 2008 Caolan McNamara <caolanm at redhat.com> - 1:2.4.0-10.2
+- Resolves: rhbz#429632 add openoffice.org-2.3.0.ooo86882.vcl.unsigned_int_to_long.patch
+
* Sun Mar 09 2008 Caolan McNamara <caolanm at redhat.com> - 1:2.4.0-10.1
- next release candidate
- rhbz#293791 Restore draw back to the menus and revert to upstream app names
More information about the fedora-extras-commits
mailing list