Kaydet (Commit) 47ac1b74 authored tarafından Takeshi Abe's avatar Takeshi Abe Kaydeden (comit) Michael Stahl

perform a proper boundary check, just in case

Change-Id: I4713b88a2130658513fd64793129c855169f0187
Reviewed-on: https://gerrit.libreoffice.org/15720Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
Tested-by: 's avatarMichael Stahl <mstahl@redhat.com>
üst 19ba9e08
...@@ -381,7 +381,7 @@ void DrawCommandDispatch::execute( const OUString& rCommand, const Sequence< bea ...@@ -381,7 +381,7 @@ void DrawCommandDispatch::execute( const OUString& rCommand, const Sequence< bea
const beans::PropertyValue* pKeyModifier = ::std::find_if( const beans::PropertyValue* pKeyModifier = ::std::find_if(
pIter, pEnd, ::std::bind2nd( PropertyValueCompare(), boost::cref( sKeyModifier ) ) ); pIter, pEnd, ::std::bind2nd( PropertyValueCompare(), boost::cref( sKeyModifier ) ) );
sal_Int16 nKeyModifier = 0; sal_Int16 nKeyModifier = 0;
if ( pKeyModifier && ( pKeyModifier->Value >>= nKeyModifier ) && nKeyModifier == KEY_MOD1 ) if ( pKeyModifier != pEnd && pKeyModifier && ( pKeyModifier->Value >>= nKeyModifier ) && nKeyModifier == KEY_MOD1 )
{ {
if ( eDrawMode == CHARTDRAW_INSERT ) if ( eDrawMode == CHARTDRAW_INSERT )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment