ooo-build r15381 - branches/ooo-build-3-0-1/patches/dev300



Author: kyoshida
Date: Thu Feb 19 23:22:51 2009
New Revision: 15381
URL: http://svn.gnome.org/viewvc/ooo-build?rev=15381&view=rev

Log:
forgot to add the patch.

Added:
   branches/ooo-build-3-0-1/patches/dev300/layout-find-dialog-crash-fix.diff

Added: branches/ooo-build-3-0-1/patches/dev300/layout-find-dialog-crash-fix.diff
==============================================================================
--- (empty file)
+++ branches/ooo-build-3-0-1/patches/dev300/layout-find-dialog-crash-fix.diff	Thu Feb 19 23:22:51 2009
@@ -0,0 +1,24 @@
+diff --git toolkit/source/vclcompat/wfield.cxx toolkit/source/vclcompat/wfield.cxx
+index 8bd4be4..93130d6 100644
+--- toolkit/source/vclcompat/wfield.cxx
++++ toolkit/source/vclcompat/wfield.cxx
+@@ -326,7 +326,8 @@ public:
+     {
+         uno::Sequence< rtl::OUString> aItems( mxComboBox->getItems() );
+         rtl::OUString rKey( rStr );
+-        for( unsigned int i = 0; aItems.getLength(); i++ )
++        sal_Int32 n = aItems.getLength();
++        for( unsigned int i = 0; i < n; i++ )
+         {
+             if ( aItems[ i ] == rKey )
+                 return sal::static_int_cast< sal_uInt16 >( i );
+@@ -477,7 +478,8 @@ public:
+     {
+         uno::Sequence< rtl::OUString> aItems( mxListBox->getItems() );
+         rtl::OUString rKey( rStr );
+-        for( unsigned int i = 0; aItems.getLength(); i++ )
++        sal_Int32 n = aItems.getLength();
++        for( unsigned int i = 0; i < n; i++ )
+         {
+             if ( aItems[ i ] == rKey )
+                 return sal::static_int_cast< sal_uInt16 >( i );



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]