[Libreoffice-commits] core.git: cui/source

Takeshi Abe tabe at fixedpoint.jp
Sun May 17 23:22:03 PDT 2015


 cui/source/options/optaboutconfig.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 15e29b817ca95686fc0d1f4453457e281f3148fa
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date:   Sat May 16 07:19:32 2015 +0900

    perform a boundary check
    
    Change-Id: I54ec8841c0f162ee33bcf1de2507465b9c49cb71
    Reviewed-on: https://gerrit.libreoffice.org/15744
    Tested-by: Jenkins <ci at libreoffice.org>
    Tested-by: David Tardon <dtardon at redhat.com>
    Reviewed-by: David Tardon <dtardon at redhat.com>

diff --git a/cui/source/options/optaboutconfig.cxx b/cui/source/options/optaboutconfig.cxx
index 8c3d633..9b4481b 100644
--- a/cui/source/options/optaboutconfig.cxx
+++ b/cui/source/options/optaboutconfig.cxx
@@ -700,7 +700,8 @@ IMPL_LINK_NOARG( CuiAboutConfigTabPage, StandardHdl_Impl )
                       static_cast< SvLBoxString* >( entry.GetItem(2) )->GetText().equals( sPropertyName );
           }
         );
-        it->ReplaceItem( new SvLBoxString( &(*it), 0, sDialogValue ), 4 );
+        if (it != m_prefBoxEntries.end())
+            it->ReplaceItem( new SvLBoxString( &(*it), 0, sDialogValue ), 4 );
     }
     catch( uno::Exception& )
     {


More information about the Libreoffice-commits mailing list