summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2018-08-18 23:23:19 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-08-19 08:30:59 +0200
commitf61af646c5c3fe7e50aea01ede6a9d7ea53380f2 (patch)
tree720a135a4101ea57a68b7584a92af0fa63329d98 /vcl
parent6c89f41b02fcd8918e535460994daac4ecd5d37e (diff)
tdf#119321: fix appendCopy in searchAndReplace (printing)
Regression from: https://cgit.freedesktop.org/libreoffice/core/commit/?id=cd66852f6dd08631a25d15a1527a647e69ab8ce3 Change-Id: Iea4b21647dd01406271f9b3e13fea3cc73e1c801 Reviewed-on: https://gerrit.libreoffice.org/59303 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/printdlg.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/window/printdlg.cxx b/vcl/source/window/printdlg.cxx
index d8019f7ca7fc..9c0666f8dc34 100644
--- a/vcl/source/window/printdlg.cxx
+++ b/vcl/source/window/printdlg.cxx
@@ -1343,7 +1343,7 @@ static OUString searchAndReplace( const OUString& i_rOrig, const char* i_pRepl,
if( nPos != -1 )
{
OUStringBuffer aBuf( i_rOrig.getLength() );
- aBuf.appendCopy( i_rOrig, nPos );
+ aBuf.appendCopy( i_rOrig, 0, nPos );
aBuf.append( i_rRepl );
if( nPos + i_nReplLen < i_rOrig.getLength() )
aBuf.appendCopy( i_rOrig, nPos + i_nReplLen );