diff options
Diffstat (limited to 'config/patches/libabiword-docreplace-r22844.patch')
-rw-r--r-- | config/patches/libabiword-docreplace-r22844.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/config/patches/libabiword-docreplace-r22844.patch b/config/patches/libabiword-docreplace-r22844.patch new file mode 100644 index 0000000..d20e775 --- /dev/null +++ b/config/patches/libabiword-docreplace-r22844.patch @@ -0,0 +1,23 @@ +diff -u -r libabiword-2.6.0.svn20071127.orig/src/wp/ap/unix/abiwidget.cpp libabiword-2.6.0.svn20071127/src/wp/ap/unix/abiwidget.cpp +--- libabiword-2.6.0.svn20071127.orig/src/wp/ap/unix/abiwidget.cpp 2007-11-24 20:19:03.000000000 +0100 ++++ libabiword-2.6.0.svn20071127/src/wp/ap/unix/abiwidget.cpp 2008-03-22 21:42:22.000000000 +0100 +@@ -890,6 +890,19 @@ + { + case APF_ReplaceDocument: + UT_DEBUGMSG(("Replace document signalled\n")); ++ // ++ // Not sure what got broken for us to need this. ++ // Views should be deleted before their documents ++ // Nonetheless this fixes bug 11421 crash in sugar ++ // when changing document with a shared session. ++ // ++ // ++ if (m_pWidget->priv->m_pFrame->getCurrentView()) ++ { ++ FV_View * pView = static_cast<FV_View *>(m_pWidget->priv->m_pFrame->getCurrentView()); ++ m_pWidget->priv->m_pDoc = pView->getDocument(); ++ } ++ + break; + case APF_ReplaceView: + UT_DEBUGMSG(("Replace view signalled\n")); |