diff options
Diffstat (limited to 'svl/source/misc/urihelper.cxx')
-rw-r--r-- | svl/source/misc/urihelper.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svl/source/misc/urihelper.cxx b/svl/source/misc/urihelper.cxx index 127134d1ab72..507c8c4f0bb9 100644 --- a/svl/source/misc/urihelper.cxx +++ b/svl/source/misc/urihelper.cxx @@ -433,7 +433,7 @@ OUString URIHelper::FindFirstURLInText(OUString const & rText, INetURLObject::EncodeMechanism eMechanism, rtl_TextEncoding eCharset) { - if (!(rBegin <= rEnd && rEnd <= rText.getLength())) + if (rBegin > rEnd || rEnd > rText.getLength()) return OUString(); // Search for the first substring of [rBegin..rEnd[ that matches any of the |