rpms/openoffice.org/devel openoffice.org-3.1.1.ooo102932.sw.mailmerge.busted-integer-conversion.patch, NONE, 1.1 openoffice.org.spec, 1.1948, 1.1949

David Tardon dtardon at fedoraproject.org
Fri Jun 19 06:40:13 UTC 2009


Author: dtardon

Update of /cvs/extras/rpms/openoffice.org/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv25450

Modified Files:
	openoffice.org.spec 
Added Files:
	openoffice.org-3.1.1.ooo102932.sw.mailmerge.busted-integer-conversion.patch 
Log Message:
Resolves: rhbz#504452 Serial printing: Problems with datasource refresh, selection of records when printing to a file

openoffice.org-3.1.1.ooo102932.sw.mailmerge.busted-integer-conversion.patch:

--- NEW FILE openoffice.org-3.1.1.ooo102932.sw.mailmerge.busted-integer-conversion.patch ---
Index: sw/source/ui/envelp/mailmrge.cxx
===================================================================
--- sw/source/ui/envelp/mailmrge.cxx	(revision 272843)
+++ sw/source/ui/envelp/mailmrge.cxx	(working copy)
@@ -402,6 +402,8 @@
     aLk = LINK(this, SwMailMergeDlg, ModifyHdl);
 	aFromNF.SetModifyHdl(aLk);
 	aToNF.SetModifyHdl(aLk);
+    aFromNF.SetMax(SAL_MAX_INT32);
+    aToNF.SetMax(SAL_MAX_INT32);
 
     SwNewDBMgr* pNewDBMgr = rSh.GetNewDBMgr();
     if(_xConnection.is())
@@ -783,19 +785,20 @@
 
 	if (aFromRB.IsChecked())	// Liste Einfuegen
 	{
-        ULONG nStart = static_cast< ULONG >(aFromNF.GetValue());
-        ULONG nEnd   = static_cast< ULONG >(aToNF.GetValue());
+        // Safe: the maximal value of the fields is limited
+        sal_Int32 nStart = sal::static_int_cast<sal_Int32>(aFromNF.GetValue());
+        sal_Int32 nEnd   = sal::static_int_cast<sal_Int32>(aToNF.GetValue());
 
 		if (nEnd < nStart)
 		{
-			ULONG nZw = nEnd;
+			const sal_Int32 nZw = nEnd;
 			nEnd = nStart;
 			nStart = nZw;
 		}
 
 		m_aSelection.realloc(nEnd - nStart + 1);
 		Any* pSelection = m_aSelection.getArray();
-		for (ULONG i = nStart; i <= nEnd; ++i, ++pSelection)
+		for (sal_Int32 i = nStart; i != nEnd; ++i, ++pSelection)
 			*pSelection <<= i;
 	}
     else if (aAllRB.IsChecked() )


Index: openoffice.org.spec
===================================================================
RCS file: /cvs/extras/rpms/openoffice.org/devel/openoffice.org.spec,v
retrieving revision 1.1948
retrieving revision 1.1949
diff -u -p -r1.1948 -r1.1949
--- openoffice.org.spec	18 Jun 2009 17:16:11 -0000	1.1948
+++ openoffice.org.spec	19 Jun 2009 06:39:43 -0000	1.1949
@@ -150,6 +150,8 @@ Patch72: openoffice.org-3.1.1-ooo102679.
 Patch73: openoffice.org-2.0.0.ooo46270.svx.search-dialog.no-find-all-in-draw.patch
 Patch74: openoffice.org-3.1.0.ooo102920.i18npool.utf16bustage.patch
 Patch75: workspace.aw073.patch
+Patch76:
+openoffice.org-3.1.1.ooo102932.sw.mailmerge.busted-integer-conversion.patch
 
 %define python_py_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(0)")
 %define instdir %{_libdir}
@@ -1657,6 +1659,7 @@ cat %{PATCH11} >> svtools/source/dialogs
 %patch73 -p0 -b .ooo46270.svx.search-dialog.no-find-all-in-draw.patch
 %patch74 -p0 -b .ooo102920.i18npool.utf16bustage.patch
 %patch75 -p0 -b .workspace.aw073.patch
+%patch76 -p0 -b .ooo102932.sw.mailmerge.busted-integer-conversion.patch
 
 %build
 echo build start time is `date`, diskspace: `df -h . | tail -n 1`
@@ -4174,6 +4177,8 @@ fi
 - add hunspell-ko for Korean
 - Resolves: rhbz#506545: openoffice.org-3.1.0.ooo102920.i18npool.utf16bustage.patch
 - Resolves: rhbz#506184 workspace.aw073.patch
+- Resolves: rhbz#504452 Serial printing: Problems with datasource
+  refresh, selection of records when printing to a file
 
 * Mon Jun 15 2009 Caolán McNamara <caolanm at redhat.com> - 1:3.1.1-13.2
 - add openoffice.org-2.0.0.ooo46270.svx.search-dialog.no-find-all-in-draw.patch




More information about the fedora-extras-commits mailing list