diff options
Diffstat (limited to 'scripting/source/basprov/basprov.cxx')
-rw-r--r-- | scripting/source/basprov/basprov.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripting/source/basprov/basprov.cxx b/scripting/source/basprov/basprov.cxx index cc0f4f9ce230..fc482c45f55e 100644 --- a/scripting/source/basprov/basprov.cxx +++ b/scripting/source/basprov/basprov.cxx @@ -243,7 +243,7 @@ namespace basprov } OUString sDoc = "vnd.sun.star.tdoc"; - if ( m_sScriptingContext.indexOf( sDoc ) == 0 ) + if ( m_sScriptingContext.startsWith( sDoc ) ) { xModel = MiscUtils::tDocUrlToModel( m_sScriptingContext ); // TODO: use ScriptingContantsPool for SCRIPTING_DOC_REF |