diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2017-04-16 09:14:39 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2017-04-16 10:37:00 +0200 |
commit | 22c775b05b37a89e8d64e36d1ec2fb5dfbfa5259 (patch) | |
tree | c98301c3fc75cb9fbfcfce52e4dd5199dc30050e /oox | |
parent | e81a35e1a86b6492a68f52ae53c41ee624981ee8 (diff) |
cppcheck: arrayIndexThenCheck
Change-Id: Ie3ca646fae94ff5a06a29fc2823a1cacafc3deb1
Reviewed-on: https://gerrit.libreoffice.org/36575
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/export/drawingml.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx index 393936cab94f..c59a2bfbf638 100644 --- a/oox/source/export/drawingml.cxx +++ b/oox/source/export/drawingml.cxx @@ -2354,7 +2354,7 @@ void DrawingML::WritePresetShape( const char* pShape, MSO_SPT eShapeType, bool b { // If the document model doesn't have an adjustment name (e.g. shape was created from VML), then take it from the predefined list. OString aAdjName; - if (aAdjustmentSeq[i].Name.isEmpty() && static_cast<sal_uInt32>(i) < aAdjustments.size()) + if (static_cast<sal_uInt32>(i) < aAdjustments.size() && aAdjustmentSeq[i].Name.isEmpty()) aAdjName = aAdjustments[i]; mpFS->singleElementNS( XML_a, XML_gd, |