diff options
Diffstat (limited to 'sw/source/ui/uno/unotxdoc.cxx')
-rw-r--r-- | sw/source/ui/uno/unotxdoc.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/uno/unotxdoc.cxx b/sw/source/ui/uno/unotxdoc.cxx index c658b8598a79..3ca1c8b6d804 100644 --- a/sw/source/ui/uno/unotxdoc.cxx +++ b/sw/source/ui/uno/unotxdoc.cxx @@ -1702,7 +1702,7 @@ Reference< XInterface > SwXTextDocument::createInstance(const OUString& rServic //! adding the shapes to the draw page). //! For inserting OLE objects the proper way is to use //! "com.sun.star.text.TextEmbeddedObject"! - if (rServiceName.lastIndexOf( ".OLE2Shape" ) == rServiceName.getLength() - 10) + if (rServiceName.endsWith( ".OLE2Shape" )) throw ServiceNotRegisteredException(); // declare service to be not registered with this factory // |