drawinglayer/source/primitive2d/metafileprimitive2d.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 59bce03256c5c00616cf63ace140cb91fdd46aa7 Author: Julien Nabet <serval2...@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 <r...@novell.com> Tested-by: Radek DoulÃk <r...@novell.com> diff --git a/drawinglayer/source/primitive2d/metafileprimitive2d.cxx b/drawinglayer/source/primitive2d/metafileprimitive2d.cxx index f4337aa..cef6500 100644 --- a/drawinglayer/source/primitive2d/metafileprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/metafileprimitive2d.cxx @@ -524,8 +524,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()
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits