summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-02-16 15:47:26 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-02-16 15:47:26 +0000
commitc21b18077d9776c7c36875e0e9c15907cc46f1fb (patch)
treeeee3d69622f73e585091e261f5eeb3dd8e6b5609 /sw/source
parentd929a1715da3088229f6b41b03e9713fe110b881 (diff)
include algorithm for std::max
Change-Id: I03c3bf1f920e77871383ab52e2c729154860b15d
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/bastyp/breakit.cxx1
-rw-r--r--sw/source/core/txtnode/thints.cxx2
2 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/core/bastyp/breakit.cxx b/sw/source/core/bastyp/breakit.cxx
index bf468b9604ad..559d6f267a8e 100644
--- a/sw/source/core/bastyp/breakit.cxx
+++ b/sw/source/core/bastyp/breakit.cxx
@@ -30,6 +30,7 @@
#include <unotools/localedatawrapper.hxx>
#include <comphelper/processfactory.hxx>
#include <osl/diagnose.h>
+#include <algorithm>
using namespace com::sun::star;
diff --git a/sw/source/core/txtnode/thints.cxx b/sw/source/core/txtnode/thints.cxx
index 343eb6448627..0f550436cd70 100644
--- a/sw/source/core/txtnode/thints.cxx
+++ b/sw/source/core/txtnode/thints.cxx
@@ -1257,6 +1257,8 @@ bool SwTxtNode::InsertHint( SwTxtAttr * const pAttr, const SetAttrMode nMode )
OSL_ENSURE( pAttr && pAttr->GetStart() <= Len(), "StartIdx out of bounds!" );
OSL_ENSURE( !pAttr->GetEnd() || (*pAttr->GetEnd() <= Len()),
"EndIdx out of bounds!" );
+ if (pAttr->GetEnd() && (*pAttr->GetEnd() > Len()))
+ fprintf(stderr, "debug here\n");
// translate from SetAttrMode to InsertMode (for hints with CH_TXTATR)
const enum IDocumentContentOperations::InsertFlags nInsertFlags =