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

New commits:
commit f9d0bfe98d631fb0a27f2827188ce4af6b755d3c
Author: Julien Nabet <serval2...@yahoo.fr>
Date:   Sun Mar 24 17:53:17 2013 +0100

    coverity#704289 Logically dead code
    
    Change-Id: I84491fc5947364191c14efa57fd106c9a57bd0be

diff --git a/sd/source/core/sdpage.cxx b/sd/source/core/sdpage.cxx
index 5c4337f..688d093 100644
--- a/sd/source/core/sdpage.cxx
+++ b/sd/source/core/sdpage.cxx
@@ -2033,7 +2033,7 @@ SdrObject* convertPresentationObjectImpl( SdPage& rPage, 
SdrObject* pSourceObj,
     if( !pModel || !pSourceObj )
         return pSourceObj;
 
-    ::svl::IUndoManager* pUndoManager = pModel ? 
static_cast<SdDrawDocument*>(pModel)->GetUndoManager() : 0;
+    ::svl::IUndoManager* pUndoManager = 
static_cast<SdDrawDocument*>(pModel)->GetUndoManager();
     const bool bUndo = pUndoManager && pUndoManager->IsInListAction() && 
rPage.IsInserted();
 
     SdrObject* pNewObj = pSourceObj;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to