From c7f4b6bb955ef8841c41e3595d152b5931f5c7a7 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sat, 14 Dec 2013 00:08:06 +0100 Subject: cppcheck: same expression, should check aPageOffset.X and aPageOffset.Y Change-Id: Ibec07fba0b2070a4dea7fd0008d7e5fd0af906d7 --- sd/source/core/drawdoc2.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sd') 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(); -- cgit