summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-09-29 20:38:18 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-09-29 20:41:38 +0100
commit65277f994ae25d930c15aebba0ed19f8de0abba1 (patch)
tree1a47002360fa2fae5228046deb2f83ad06a8ff68
parent4c23ff3c18bc89b12ee59d1769037f01cc6ef683 (diff)
Resolves: fdo#79131 crash in EnhancedCustomShapeTypeNames::Get
Change-Id: Ib21a4a1574119120f09d4ecac73b93a0f2f6739f
-rw-r--r--svx/source/customshapes/EnhancedCustomShapeTypeNames.cxx2
-rw-r--r--sw/qa/core/data/ooxml/pass/fdo79131.docxbin0 -> 10426 bytes
2 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/customshapes/EnhancedCustomShapeTypeNames.cxx b/svx/source/customshapes/EnhancedCustomShapeTypeNames.cxx
index 6dda34efbf37..68bdd3200cf0 100644
--- a/svx/source/customshapes/EnhancedCustomShapeTypeNames.cxx
+++ b/svx/source/customshapes/EnhancedCustomShapeTypeNames.cxx
@@ -301,7 +301,7 @@ MSO_SPT EnhancedCustomShapeTypeNames::Get( const OUString& rShapeType )
OUString EnhancedCustomShapeTypeNames::Get( const MSO_SPT eShapeType )
{
- return eShapeType <= mso_sptTextBox
+ return (eShapeType <= mso_sptTextBox && eShapeType >= mso_sptMin)
? OUString::createFromAscii( pNameTypeTableArray[ eShapeType ].pS )
: OUString();
}
diff --git a/sw/qa/core/data/ooxml/pass/fdo79131.docx b/sw/qa/core/data/ooxml/pass/fdo79131.docx
new file mode 100644
index 000000000000..5f10d9c86fb0
--- /dev/null
+++ b/sw/qa/core/data/ooxml/pass/fdo79131.docx
Binary files differ