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

Stephan Bergmann sbergman at redhat.com
Mon Jul 6 02:53:52 PDT 2015


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

New commits:
commit 29fbe4bb7c28184721fa718393b2454437076940
Author: Stephan Bergmann <sbergman at 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 ) );
 


More information about the Libreoffice-commits mailing list