summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-03-08 09:03:10 +0100
committerStephan Bergmann <sbergman@redhat.com>2013-03-08 09:03:10 +0100
commit3d4723f80a37e719359ad78ad063bc39ac28cd32 (patch)
tree87963e60947a5d61854d733dccd3779bad05545b /sw
parentb62541a083158cf1d30337ba5e751c1cbd2c649e (diff)
Revert "simplify some compareTo"
This reverts commit 19020191cbf3e3c7a7bf98d0958d86d931ae687b, s1.compareTo(s2, length-of-s2) is *not* equivalent to s1 == s2
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/unocore/unoframe.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/unocore/unoframe.cxx b/sw/source/core/unocore/unoframe.cxx
index a732aa81bb87..dddeee6a7db0 100644
--- a/sw/source/core/unocore/unoframe.cxx
+++ b/sw/source/core/unocore/unoframe.cxx
@@ -1257,7 +1257,7 @@ void SwXFrame::setPropertyValue(const :: OUString& rPropertyName, const :: uno::
// the package URL based graphics are handled in different way currently
// TODO/LATER: actually this is the correct place to handle them
::rtl::OUString aGraphicProtocol( RTL_CONSTASCII_USTRINGPARAM( sGraphicObjectProtocol ) );
- if( aGrfUrl == aGraphicProtocol )
+ if( aGrfUrl.compareTo( aGraphicProtocol, aGraphicProtocol.getLength() ) == 0 )
{
rtl::OString sId(rtl::OUStringToOString(
aGrfUrl.copy(sizeof(sGraphicObjectProtocol)-1),