summaryrefslogtreecommitdiffstats
path: root/editeng
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2013-03-08 12:37:15 +0100
committerStephan Bergmann <sbergman@redhat.com>2013-03-08 13:04:13 +0100
commit6583305dd70e31ae745d709b8cda8c7b68219735 (patch)
treee50a38a329c161b3d3a99c11fa49a53a3dfb8330 /editeng
parentAdd PDF Mimetype to Draw (diff)
downloadcore-6583305dd70e31ae745d709b8cda8c7b68219735.tar.gz
core-6583305dd70e31ae745d709b8cda8c7b68219735.zip
simplify compareTo (now correct)
Change-Id: Ia4fd2f54d0bda71d472f46949500c0b23ff8e1b7 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/uno/unofield.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/editeng/source/uno/unofield.cxx b/editeng/source/uno/unofield.cxx
index b33da6beaa22..b7b0a001867e 100644
--- a/editeng/source/uno/unofield.cxx
+++ b/editeng/source/uno/unofield.cxx
@@ -886,8 +886,8 @@ uno::Reference< uno::XInterface > SAL_CALL SvxUnoTextCreateTextField( const ::rt
// fixed since OOo 3.2 but for compatibility we will still provide support for the wrong notation.
const OUString aTextFieldPrexit2( "com.sun.star.text.TextField." );
- if( (ServiceSpecifier.compareTo( aTextFieldPrexit, aTextFieldPrexit.getLength() ) == 0) ||
- (ServiceSpecifier.compareTo( aTextFieldPrexit2, aTextFieldPrexit2.getLength() ) == 0) )
+ if( (ServiceSpecifier.startsWith( aTextFieldPrexit )) ||
+ (ServiceSpecifier.startsWith( aTextFieldPrexit2 )) )
{
OUString aFieldType( ServiceSpecifier.copy( aTextFieldPrexit.getLength() ) );