Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


On Sun, May 5, 2013 at 12:55 PM, Manuel Reimer
<Manuel.Spam@nurfuerspam.de> wrote:
Manuel Reimer wrote:

I have a ".docx" file which immediately crashes LibreOffice.

Can someone please tell me where I can send this file to so a developer
can have
a look at this file? I can't publish the file on the internet, as the
content in
this file is copyright protected.


I asked the author and I got the permission to publish the file, so I filed
a bug here:
https://bugs.freedesktop.org/show_bug.cgi?id=64249

Yep, that is the way to go :-)

the patch below worked around the crash for me... :

diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.cxx
b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
index b5a5baa..2efc636 100644
--- a/writerfilter/source/dmapper/DomainMapper_Impl.cxx
+++ b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
@@ -1647,6 +1647,8 @@ void DomainMapper_Impl::PushShapeContext( const
uno::Reference< drawing::XShape
     if (m_aTextAppendStack.empty())
         return;
     uno::Reference<text::XTextAppend> xTextAppend =
m_aTextAppendStack.top().xTextAppend;
+    appendTableManager( );
+    appendTableHandler( );
     try
     {
         uno::Reference< lang::XServiceInfo > xSInfo( xShape,
uno::UNO_QUERY_THROW );
@@ -1705,15 +1707,12 @@ void DomainMapper_Impl::PushShapeContext(
const uno::Reference< drawing::XShape
                 xProps->setPropertyValue( rPropNameSupplier.GetName(
PROP_ANCHOR_TYPE ), bIsGraphic  ?  uno::makeAny(
text::TextContentAnchorType_AS_CHARACTER ) : uno::makeAny(
text::TextContentAnchorType_AT_PARAGRAPH ) );
             }
         }
-
-        appendTableManager( );
-        appendTableHandler( );
-        getTableManager().startLevel();
     }
     catch ( const uno::Exception& e )
     {
         SAL_WARN("writerfilter", "Exception when adding shape: " << e.Message);
     }
+    getTableManager().startLevel();
 }

it seems that that was introduced as a side effect of
http://cgit.freedesktop.org/libreoffice/core/commit/?id=d4fd86e3a48defbff29bfbabfbf0d2c5d95d39f5

Norbert

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.