[Libreoffice-commits] core.git: sd/source

Julien Nabet serval2412 at yahoo.fr
Fri Dec 13 15:08:57 PST 2013


 sd/source/core/drawdoc2.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit c7f4b6bb955ef8841c41e3595d152b5931f5c7a7
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sat Dec 14 00:08:06 2013 +0100

    cppcheck: same expression, should check aPageOffset.X and aPageOffset.Y
    
    Change-Id: Ibec07fba0b2070a4dea7fd0008d7e5fd0af906d7

diff --git a/sd/source/core/drawdoc2.cxx b/sd/source/core/drawdoc2.cxx
index 6b29aa0..408ed37 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();


More information about the Libreoffice-commits mailing list