summaryrefslogtreecommitdiff
path: root/sw/inc/ToxLinkProcessor.hxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2017-01-25 16:42:16 +0100
committerMichael Stahl <mstahl@redhat.com>2017-01-25 17:58:55 +0100
commit4a43ffcef946067c5b3992a00c765a36804a194f (patch)
treebec59dcdeaeb614d46c21184cb15bd000a622f02 /sw/inc/ToxLinkProcessor.hxx
parent700470577f62f569a5e81c7b446167f8d9c7b7cc (diff)
sw: stop swapping start and end position of links in ToX
This causes: sw/source/core/txtnode/thints.cxx:3198: +SwpHints::Insert: invalid hint, end < start Change-Id: I933c790127ab1469bb57c4d288dbb49be16ace19
Diffstat (limited to 'sw/inc/ToxLinkProcessor.hxx')
-rw-r--r--sw/inc/ToxLinkProcessor.hxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/sw/inc/ToxLinkProcessor.hxx b/sw/inc/ToxLinkProcessor.hxx
index 699c0ec9887e..7fceef1050d5 100644
--- a/sw/inc/ToxLinkProcessor.hxx
+++ b/sw/inc/ToxLinkProcessor.hxx
@@ -69,8 +69,11 @@ private:
* A link is closed if it has both a start and an end token.
*/
struct ClosedLink {
- ClosedLink(const OUString& url, sal_Int32 startPosition, sal_Int32 endPosition) :
- mINetFormat(url, OUString()), mStartTextPos(endPosition), mEndTextPos(startPosition) {
+ ClosedLink(const OUString& url, sal_Int32 startPosition, sal_Int32 endPosition)
+ : mINetFormat(url, OUString())
+ , mStartTextPos(startPosition)
+ , mEndTextPos(endPosition)
+ {
}
SwFormatINetFormat mINetFormat;
sal_Int32 mStartTextPos;