vcl/source/window/printdlg.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit f61af646c5c3fe7e50aea01ede6a9d7ea53380f2 Author: Julien Nabet <serval2...@yahoo.fr> AuthorDate: Sat Aug 18 23:23:19 2018 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Sun Aug 19 08:30:59 2018 +0200 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.gran...@collabora.co.uk> 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 ); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits