summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-02-15 15:28:24 +0100
committerMichael Stahl <mstahl@redhat.com>2013-02-15 22:43:48 +0100
commitb6d45f26ea5bcc848737921b59a16253eb1d8587 (patch)
tree7d13102e0577be9570fb6852225c67983e677a68 /sw/inc
parentd47218d79a2440e71efb66b2224063801ba6623b (diff)
fdo#60732: check max size in SwTxtNode::ReplaceText
Also adjust SwUndoReplace to not assume that everything was inserted and use the stored indexes instead in Undo. Change-Id: I52f3aaf063c2b1bd52381bdc19e29a41a12c3847
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/ndtxt.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/inc/ndtxt.hxx b/sw/inc/ndtxt.hxx
index 0c48f6409b90..fb467170c257 100644
--- a/sw/inc/ndtxt.hxx
+++ b/sw/inc/ndtxt.hxx
@@ -333,6 +333,8 @@ public:
const SwIndex & rStart, const xub_StrLen nLen);
/// replace nDelLen characters at rStart with rText
+ /// in case the replacement does not fit, it is partially inserted up to
+ /// TXTNODE_MAX
void ReplaceText( const SwIndex& rStart, const xub_StrLen nDelLen,
const XubString& rText );
void ReplaceTextOnly( xub_StrLen nPos, xub_StrLen nLen, const XubString& rText,