https://bugs.freedesktop.org/show_bug.cgi?id=69084

Julien Nabet <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #3 from Julien Nabet <[email protected]> ---
This patch removes the crash but the result is quite weird since the text
disappears. (it reappears if I click on undo)
diff --git a/sw/source/core/layout/wsfrm.cxx b/sw/source/core/layout/wsfrm.cxx
index 13fc678..0ed3400 100644
--- a/sw/source/core/layout/wsfrm.cxx
+++ b/sw/source/core/layout/wsfrm.cxx
@@ -2607,9 +2607,13 @@ SwTwips SwLayoutFrm::ShrinkFrm( SwTwips nDist, sal_Bool
bTst, sal_Bool bInfo )
         {
             _InvalidateAll();
             InvalidatePage( pPage );
-            const SvxGraphicPosition ePos =
GetFmt()->GetBackground().GetGraphicPos();
-            if ( GPOS_NONE != ePos && GPOS_TILED != ePos )
-                SetCompletePaint();
+            const SwFrmFmt *pFmt = GetFmt();
+            if (pFmt)
+            {
+                const SvxGraphicPosition ePos =
pFmt->GetBackground().GetGraphicPos();
+                if ( GPOS_NONE != ePos && GPOS_TILED != ePos )
+                    SetCompletePaint();
+            }
         }

         if ( !(GetType() & 0x1823) ) //Tab, Row, FtnCont, Root, Page

Michael: one for you?

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to