vcl/unx/generic/printer/jobdata.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
New commits: commit 7d8e3586cd82eb59c41f43d0f70f9fcae6009444 Author: Andrea Gelmini <andrea.gelm...@gelma.net> AuthorDate: Sat Sep 26 21:09:14 2020 +0200 Commit: Julien Nabet <serval2...@yahoo.fr> CommitDate: Wed Dec 30 11:45:24 2020 +0100 Fix typo in code Change-Id: I0536bf6cd41cec84c22796b08db3152092284922 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103489 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2...@yahoo.fr> diff --git a/vcl/unx/generic/printer/jobdata.cxx b/vcl/unx/generic/printer/jobdata.cxx index 1e955bde21a0..3b294670ab8a 100644 --- a/vcl/unx/generic/printer/jobdata.cxx +++ b/vcl/unx/generic/printer/jobdata.cxx @@ -147,7 +147,7 @@ bool JobData::getStreamBuffer( void*& pData, sal_uInt32& bytes ) aStream.WriteLine(aLine.makeStringAndClear()); } - aLine.append("margindajustment="); + aLine.append("marginadjustment="); aLine.append(static_cast<sal_Int32>(m_nLeftMarginAdjust)); aLine.append(','); aLine.append(static_cast<sal_Int32>(m_nRightMarginAdjust)); @@ -207,7 +207,7 @@ bool JobData::constructFromStreamBuffer( const void* pData, sal_uInt32 bytes, Jo const char orientatationEquals[] = "orientation="; const char copiesEquals[] = "copies="; const char collateEquals[] = "collate="; - const char margindajustmentEquals[] = "margindajustment="; + const char marginadjustmentEquals[] = "marginadjustment="; const char colordepthEquals[] = "colordepth="; const char colordeviceEquals[] = "colordevice="; const char pslevelEquals[] = "pslevel="; @@ -237,10 +237,10 @@ bool JobData::constructFromStreamBuffer( const void* pData, sal_uInt32 bytes, Jo { rJobData.m_bCollate = aLine.copy(RTL_CONSTASCII_LENGTH(collateEquals)).toBoolean(); } - else if (aLine.startsWith(margindajustmentEquals)) + else if (aLine.startsWith(marginadjustmentEquals)) { bMargin = true; - sal_Int32 nIdx {RTL_CONSTASCII_LENGTH(margindajustmentEquals)}; + sal_Int32 nIdx {RTL_CONSTASCII_LENGTH(marginadjustmentEquals)}; rJobData.m_nLeftMarginAdjust = aLine.getToken(0, ',', nIdx).toInt32(); rJobData.m_nRightMarginAdjust = aLine.getToken(0, ',', nIdx).toInt32(); rJobData.m_nTopMarginAdjust = aLine.getToken(0, ',', nIdx).toInt32(); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits