Lots of crash fixes

From: Martin Sevior <msevior_at_gmail.com>
Date: Sun Apr 27 2008 - 04:25:29 CEST

Hi sum1,
            Thanks very much for this collection of fixes. This is
exactly what we need.

Cheers

Martin

For people not on the commit list this is just one of many layout
crashes sum1 recently fixed.

Author: sum1
Date: 2008-04-27 01:29:49 +0200 (Sun, 27 Apr 2008)
New Revision: 23630

Modified:
   abiword/trunk/src/text/fmt/xp/fl_FootnoteLayout.cpp
Log:
Prevent a crash that was triggered by randomly visually dragging
endnotes and footnotes. Please backport.

Modified: abiword/trunk/src/text/fmt/xp/fl_FootnoteLayout.cpp
===================================================================
--- abiword/trunk/src/text/fmt/xp/fl_FootnoteLayout.cpp 2008-04-26
23:17:36 UTC (rev 23629)
+++ abiword/trunk/src/text/fmt/xp/fl_FootnoteLayout.cpp 2008-04-26
23:29:49 UTC (rev 23630)
@@ -1062,7 +1062,9 @@
        m_bNeedsFormat = false;
        m_bNeedsReformat = false;
        bool bOnPage = (getFirstContainer()->getPage() != NULL);
- FV_View * pView = m_pLayout->getView();
+ FV_View * pView = NULL;
+ if(m_pLayout)
+ pView = m_pLayout->getView();
        if(bOnPage && pView && !pView->isLayoutFilling())
        {
                getDocSectionLayout()->completeBreakSection();

-----------------------------------------------
To unsubscribe from this list, send a message to
abisource-cvs-commit-request@abisource.com with the word
unsubscribe in the message body.
Received on Sun Apr 27 04:25:45 2008

This archive was generated by hypermail 2.1.8 : Sun Apr 27 2008 - 04:25:45 CEST