summaryrefslogtreecommitdiff
path: root/xmloff/source/core/xmlmultiimagehelper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/core/xmlmultiimagehelper.cxx')
-rw-r--r--xmloff/source/core/xmlmultiimagehelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmloff/source/core/xmlmultiimagehelper.cxx b/xmloff/source/core/xmlmultiimagehelper.cxx
index f48ae6e9a576..4ed4ddd96b03 100644
--- a/xmloff/source/core/xmlmultiimagehelper.cxx
+++ b/xmloff/source/core/xmlmultiimagehelper.cxx
@@ -31,7 +31,7 @@ namespace
OUString sMimeType;
if (rString.startsWith("vnd.sun.star.Package"))
{
- OString aExtension = OUStringToOString(rString.copy(rString.lastIndexOf(".") + 1), RTL_TEXTENCODING_ASCII_US);
+ OString aExtension = OUStringToOString(rString.subView(rString.lastIndexOf(".") + 1), RTL_TEXTENCODING_ASCII_US);
sMimeType = comphelper::GraphicMimeTypeHelper::GetMimeTypeForExtension(aExtension);
}
return sMimeType;