drawinglayer/source/dumper/XShapeDumper.cxx | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-)
New commits: commit 7e802d43429831c4177b984ea3a1a04356ce5f53 Author: Markus Mohrhard <markus.mohrh...@googlemail.com> Date: Fri Jul 13 23:58:30 2012 +0200 better error messages for exceptions in XShapeDumper.cxx Change-Id: I37761931b9f8351036f360423f481f53a59855fb diff --git a/drawinglayer/source/dumper/XShapeDumper.cxx b/drawinglayer/source/dumper/XShapeDumper.cxx index c505541..3c3d3f2 100644 --- a/drawinglayer/source/dumper/XShapeDumper.cxx +++ b/drawinglayer/source/dumper/XShapeDumper.cxx @@ -35,6 +35,8 @@ #include <com/sun/star/text/XText.hpp> #include <rtl/strbuf.hxx> #include <libxml/xmlwriter.h> +#include <iostream> +#include <rtl/oustringostreaminserter.hxx> #define DEBUG_DUMPER 0 @@ -1834,9 +1836,9 @@ void dumpXShape(uno::Reference< drawing::XShape > xShape, xmlTextWriterPtr xmlWr enhancedDumper.dumpEnhancedCustomShapeTextPathService(xPropSet); } } // end of the 'try' block - catch (com::sun::star::beans::UnknownPropertyException &e) + catch (const beans::UnknownPropertyException& e) { - printf("Problem in the XShapeDumper"); + std::cout << "Exception caught in XShapeDumper.cxx: " << e.Message << std::endl; } #if DEBUG_DUMPER @@ -1877,7 +1879,14 @@ rtl::OUString XShapeDumper::dump(uno::Reference<drawing::XShapes> xPageShapes) xmlTextWriterStartDocument( xmlWriter, NULL, NULL, NULL ); - dumpXShapes( xPageShapes, xmlWriter ); + try + { + dumpXShapes( xPageShapes, xmlWriter ); + } + catch (const beans::UnknownPropertyException& e) + { + std::cout << "Exception caught in XShapeDumper: " << e.Message << std::endl; + } xmlTextWriterEndDocument( xmlWriter ); xmlFreeTextWriter( xmlWriter ); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits