summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2015-05-13 00:16:54 +0900
committerMichael Stahl <mstahl@redhat.com>2015-05-13 10:56:21 +0000
commit47ac1b7445520c04f4c98bac925fe14257fd8098 (patch)
tree1bd59ac781fa035ae055d4f5c9469d5b683b4496 /chart2
parent19ba9e08cab4ff75595f53b9689989495ff5f625 (diff)
perform a proper boundary check, just in case
Change-Id: I4713b88a2130658513fd64793129c855169f0187 Reviewed-on: https://gerrit.libreoffice.org/15720 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/controller/main/DrawCommandDispatch.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/chart2/source/controller/main/DrawCommandDispatch.cxx b/chart2/source/controller/main/DrawCommandDispatch.cxx
index 8804bb9fcb26..274791694edb 100644
--- a/chart2/source/controller/main/DrawCommandDispatch.cxx
+++ b/chart2/source/controller/main/DrawCommandDispatch.cxx
@@ -381,7 +381,7 @@ void DrawCommandDispatch::execute( const OUString& rCommand, const Sequence< bea
const beans::PropertyValue* pKeyModifier = ::std::find_if(
pIter, pEnd, ::std::bind2nd( PropertyValueCompare(), boost::cref( sKeyModifier ) ) );
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 )
{