sw/source/core/undo/unattr.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 29fbe4bb7c28184721fa718393b2454437076940
Author: Stephan Bergmann <sberg...@redhat.com>
Date:   Mon Jul 6 11:52:21 2015 +0200

    -fsanitize=vptr: unnecessary, wrong downcast
    
    is e.g. an SwDrawFrameFormat instead of an SwFlyFrameFormat during
    CppunitTest_sw_uiwriter
    
    Change-Id: I97511cf516f76b12e04da61ce6fd51f61ef83241

diff --git a/sw/source/core/undo/unattr.cxx b/sw/source/core/undo/unattr.cxx
index 9283ae2..2ba9bb34 100644
--- a/sw/source/core/undo/unattr.cxx
+++ b/sw/source/core/undo/unattr.cxx
@@ -395,7 +395,7 @@ void SwUndoFormatAttr::SaveFlyAnchor( bool bSvDrwPt )
 bool SwUndoFormatAttr::RestoreFlyAnchor(::sw::UndoRedoContext & rContext)
 {
     SwDoc *const pDoc = & rContext.GetDoc();
-    SwFlyFrameFormat* pFrameFormat = static_cast<SwFlyFrameFormat*>(m_pFormat);
+    SwFrameFormat* pFrameFormat = static_cast<SwFrameFormat*>(m_pFormat);
     const SwFormatAnchor& rAnchor =
         static_cast<const SwFormatAnchor&>( m_pOldSet->Get( RES_ANCHOR, false 
) );
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to