summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-12-14 00:08:06 +0100
committerJulien Nabet <serval2412@yahoo.fr>2013-12-14 00:08:06 +0100
commitc7f4b6bb955ef8841c41e3595d152b5931f5c7a7 (patch)
tree44e377f3c4cc9db2d0d7099dde5bb3727bf11167 /sd
parent00e9f30360216581c1d9d105fa522da69e078ed8 (diff)
cppcheck: same expression, should check aPageOffset.X and aPageOffset.Y
Change-Id: Ibec07fba0b2070a4dea7fd0008d7e5fd0af906d7
Diffstat (limited to 'sd')
-rw-r--r--sd/source/core/drawdoc2.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/core/drawdoc2.cxx b/sd/source/core/drawdoc2.cxx
index 6b29aa00346d..408ed374cfdd 100644
--- a/sd/source/core/drawdoc2.cxx
+++ b/sd/source/core/drawdoc2.cxx
@@ -536,7 +536,7 @@ void SdDrawDocument::CreateFirstPages( SdDrawDocument* pRefDocument /* = 0 */ )
Size aOutSize(pPrinter->GetOutputSize());
Point aPageOffset(pPrinter->GetPageOffset());
aPageOffset -= pPrinter->PixelToLogic( Point() );
- long nOffset = !aPageOffset.X() && !aPageOffset.X() ? 0 : PRINT_OFFSET;
+ long nOffset = !aPageOffset.X() && !aPageOffset.Y() ? 0 : PRINT_OFFSET;
sal_uLong nTop = aPageOffset.Y();
sal_uLong nLeft = aPageOffset.X();