summaryrefslogtreecommitdiffstats
path: root/sw/inc/ftnidx.hxx
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedric.bosdonnat@free.fr>2012-08-01 14:36:54 +0200
committerCédric Bosdonnat <cedric.bosdonnat@free.fr>2012-08-01 14:39:11 +0200
commit9490643712a040a6f4433d145bc5d35d9d4335f5 (patch)
treedb0d069a1c1cd090f52dddfad840b5cf7ee5d170 /sw/inc/ftnidx.hxx
parentresolved fdo#53012 crash in CSV fixed width import (diff)
downloadcore-9490643712a040a6f4433d145bc5d35d9d4335f5.tar.gz
core-9490643712a040a6f4433d145bc5d35d9d4335f5.zip
Fix for a236f8318a0e05caeec53ccbee8b134f44a98008
To get footnotes sorted properly one need to: * actually use the comparator class * compare on the offsets value (and not there pointers) Change-Id: Ie86802c7a92602bfbb4d2a603afe06f621e392a3
Diffstat (limited to 'sw/inc/ftnidx.hxx')
-rw-r--r--sw/inc/ftnidx.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/inc/ftnidx.hxx b/sw/inc/ftnidx.hxx
index 0cc2efa53979..e2801c42b334 100644
--- a/sw/inc/ftnidx.hxx
+++ b/sw/inc/ftnidx.hxx
@@ -47,7 +47,7 @@ struct CompareSwFtnIdxs
bool operator()(SwTxtFtn* const& lhs, SwTxtFtn* const& rhs) const;
};
-class SwFtnIdxs : public o3tl::sorted_vector<SwTxtFtn*>
+class SwFtnIdxs : public o3tl::sorted_vector<SwTxtFtn*, CompareSwFtnIdxs>
{
public:
SwFtnIdxs() {}