summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-12-12 13:31:40 +0200
committerNoel Grandin <noel@peralex.com>2013-12-12 13:32:04 +0200
commit1114d9275950b69c1667435793bac7d77147476b (patch)
tree9f1e8407b4e7fbeb68a871f866080d75a1e72c58 /editeng
parent3c65cee396d8e761113272daa47d8df17fa5d820 (diff)
fix OUString simplify
In my commit fb847101519ad74c02183672c04ebf1d700aae83 "simplify - use OUString::startsWith where possible" I incorrectly converted if ( !aURL.isEmpty() && ( aURL[ 0 ] != '#' ) ) to if ( aURL.startsWith("#") ) Change-Id: I7fa3a814e13724dc65821e09c03db898b92626ec
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/eehtml.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/editeng/source/editeng/eehtml.cxx b/editeng/source/editeng/eehtml.cxx
index f09f9fde687f..d44c937d1adf 100644
--- a/editeng/source/editeng/eehtml.cxx
+++ b/editeng/source/editeng/eehtml.cxx
@@ -783,7 +783,7 @@ void EditHTMLParser::AnchorStart()
if ( !aRef.isEmpty() )
{
OUString aURL = aRef;
- if ( aURL.startsWith("#") )
+ if ( !aURL.isEmpty() && ( aURL[ 0 ] != '#' ) )
{
INetURLObject aTargetURL;
INetURLObject aRootURL( aBaseURL );