[Libreoffice-commits] core.git: oox/source sc/source svx/source

Noel Grandin noel.grandin at collabora.co.uk
Fri May 25 11:56:26 UTC 2018


 oox/source/export/chartexport.cxx                 |    2 +-
 oox/source/export/drawingml.cxx                   |    2 +-
 sc/source/filter/lotus/lotform.cxx                |    4 ++--
 svx/source/accessibility/AccessibleTextHelper.cxx |    5 +++--
 4 files changed, 7 insertions(+), 6 deletions(-)

New commits:
commit 080fa092f466d5ba457852736a3fd6c6cb0dc4b8
Author: Noel Grandin <noel.grandin at collabora.co.uk>
Date:   Fri May 25 11:29:44 2018 +0200

    improve some logging
    
    if we're going to write "unhandled" messages, at least what is being
    unhandled
    
    Change-Id: I570183c92876d553f4344b979def653cbd5bb55d
    Reviewed-on: https://gerrit.libreoffice.org/54793
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/oox/source/export/chartexport.cxx b/oox/source/export/chartexport.cxx
index bd91390d5f3c..9f170eaa53e8 100644
--- a/oox/source/export/chartexport.cxx
+++ b/oox/source/export/chartexport.cxx
@@ -1239,7 +1239,7 @@ void ChartExport::exportManualLayout(const css::chart2::RelativePosition& rPos,
             x -= w;
         break;
         default:
-            SAL_WARN("oox", "unhandled alignment case for manual layout export");
+            SAL_WARN("oox", "unhandled alignment case for manual layout export " << static_cast<sal_uInt16>(rPos.Anchor));
     }
 
     pFS->singleElement(FSNS(XML_c, XML_x),
diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx
index 1c0be28fdaf9..25ea475b2ac4 100644
--- a/oox/source/export/drawingml.cxx
+++ b/oox/source/export/drawingml.cxx
@@ -891,7 +891,7 @@ OUString DrawingML::WriteImage( const Graphic& rGraphic , bool bRelPathToMedia )
             }
             else
             {
-                SAL_WARN("oox.shape", "unhandled graphic type" );
+                SAL_WARN("oox.shape", "unhandled graphic type " << static_cast<int>(aType) );
                 /*Earlier, even in case of unhandled graphic types we were
                   proceeding to write the image, which would eventually
                   write an empty image with a zero size, and return a valid
diff --git a/sc/source/filter/lotus/lotform.cxx b/sc/source/filter/lotus/lotform.cxx
index 4000b3c1a4ea..cbf29f667bb7 100644
--- a/sc/source/filter/lotus/lotform.cxx
+++ b/sc/source/filter/lotus/lotform.cxx
@@ -287,7 +287,7 @@ void LotusToSc::LotusRelToScRel( sal_uInt16 nCol, sal_uInt16 nRow, ScSingleRefDa
                     nRow &= 0x1FFF;
                 break;
             default:
-                SAL_WARN( "sc.filter", "*LotusToSc::LotusRelToScRel(): unhandled case?" );
+                SAL_WARN( "sc.filter", "*LotusToSc::LotusRelToScRel(): unhandled case? " << m_rContext.eTyp );
         }
     }
     else
@@ -307,7 +307,7 @@ void LotusToSc::LotusRelToScRel( sal_uInt16 nCol, sal_uInt16 nRow, ScSingleRefDa
                 nRow &= 0x3FFF;
                 break;
             default:
-                SAL_WARN( "sc.filter", "*LotusToSc::LotusRelToScRel(): unhandled case?" );
+                SAL_WARN( "sc.filter", "*LotusToSc::LotusRelToScRel(): unhandled case? " << m_rContext.eTyp );
         }
     }
 
diff --git a/svx/source/accessibility/AccessibleTextHelper.cxx b/svx/source/accessibility/AccessibleTextHelper.cxx
index 2707d768c273..f19e3a518c47 100644
--- a/svx/source/accessibility/AccessibleTextHelper.cxx
+++ b/svx/source/accessibility/AccessibleTextHelper.cxx
@@ -66,6 +66,7 @@
 #include <editeng/editdata.hxx>
 #include <editeng/editeng.hxx>
 #include <editeng/editview.hxx>
+#include <tools/diagnose_ex.h>
 
 using namespace ::com::sun::star;
 using namespace ::com::sun::star::accessibility;
@@ -1285,7 +1286,7 @@ namespace accessibility
                 }
                 catch( const uno::Exception& )
                 {
-                    SAL_WARN("svx", "Unhandled exception.");
+                    DBG_UNHANDLED_EXCEPTION("svx");
                 }
             }
         }
@@ -1399,7 +1400,7 @@ namespace accessibility
         }
         catch( const uno::Exception& )
         {
-            SAL_WARN("svx", "Unhandled exception.");
+            DBG_UNHANDLED_EXCEPTION("svx");
             mbInNotify = false;
         }
 


More information about the Libreoffice-commits mailing list