diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2013-03-08 12:37:15 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-03-08 13:04:13 +0100 |
commit | 6583305dd70e31ae745d709b8cda8c7b68219735 (patch) | |
tree | e50a38a329c161b3d3a99c11fa49a53a3dfb8330 /editeng | |
parent | a3c0df8222a20860f64b06c956c213131b79a73b (diff) |
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.cxx | 4 |
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() ) ); |