summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Gelmini <andrea.gelmini@gelma.net>2020-09-26 21:09:14 +0200
committerJulien Nabet <serval2412@yahoo.fr>2020-12-30 11:45:24 +0100
commit7d8e3586cd82eb59c41f43d0f70f9fcae6009444 (patch)
treea80a4788bf908fb4bb59af5ee0f1c17b7faaaefe
parent793e5b7255deac7699ae3a0a9d147ae1a812d2ed (diff)
Fix typo in code
Change-Id: I0536bf6cd41cec84c22796b08db3152092284922 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103489 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
-rw-r--r--vcl/unx/generic/printer/jobdata.cxx8
1 files changed, 4 insertions, 4 deletions
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();