[Libreoffice-commits] .: Branch 'libreoffice-3-6' - drawinglayer/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Jan 28 01:22:44 PST 2013


 drawinglayer/source/primitive2d/metafileprimitive2d.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 35cd3d0d6dd6d5d6fc3e406cb452c07cfa7b1a7f
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sun Jan 20 23:20:57 2013 +0100

    Resolves: fdo#49784 CRASH when FILEOPEN particular doc containing .svm
    
    Change-Id: Ia86ec2f32259180a29857eee53d6d5c082e05bf7
    Reviewed-on: https://gerrit.libreoffice.org/1788
    Reviewed-by: Radek Doulík <rodo at novell.com>
    Tested-by: Radek Doulík <rodo at novell.com>
    Reviewed-on: https://gerrit.libreoffice.org/1851

diff --git a/drawinglayer/source/primitive2d/metafileprimitive2d.cxx b/drawinglayer/source/primitive2d/metafileprimitive2d.cxx
index fa5b1ae..6da553b 100644
--- a/drawinglayer/source/primitive2d/metafileprimitive2d.cxx
+++ b/drawinglayer/source/primitive2d/metafileprimitive2d.cxx
@@ -534,8 +534,9 @@ namespace
 
         TargetHolder& Current()
         {
+            static TargetHolder aDummy;
             OSL_ENSURE(maTargetHolders.size(), "TargetHolders: CURRENT with no property holders (!)");
-            return *maTargetHolders.back();
+            return maTargetHolders.empty() ? aDummy : *maTargetHolders.back();
         }
 
         ~TargetHolders()


More information about the Libreoffice-commits mailing list