[Libreoffice-commits] .: sw/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Sun Nov 4 08:45:28 PST 2012
sw/source/ui/shells/drwtxtex.cxx | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
New commits:
commit c954e6e1317f82e06fac66556674bc066b429469
Author: Arnaud Versini <arnaud.versini at gmail.com>
Date: Sun Nov 4 17:27:13 2012 +0100
Fix fdo#56603 by NULL pointer checking in SwDrawTextShell::Execute
Change-Id: I2dffbac1450682e4d116f10ca86a2837514f70a4
Reviewed-on: https://gerrit.libreoffice.org/984
Reviewed-by: Norbert Thiebaud <nthiebaud at gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud at gmail.com>
diff --git a/sw/source/ui/shells/drwtxtex.cxx b/sw/source/ui/shells/drwtxtex.cxx
index 321ce0a..37e0f49 100644
--- a/sw/source/ui/shells/drwtxtex.cxx
+++ b/sw/source/ui/shells/drwtxtex.cxx
@@ -166,8 +166,11 @@ void SwDrawTextShell::Execute( SfxRequest &rReq )
if (nSlot == SID_ATTR_CHAR_FONT)
nScriptTypes = pOLV->GetSelectedScriptType();
- aSetItem.PutItemForScriptType( nScriptTypes, pNewAttrs->Get( nWhich ) );
- aNewAttr.Put( aSetItem.GetItemSet() );
+ if (pNewAttrs)
+ {
+ aSetItem.PutItemForScriptType( nScriptTypes, pNewAttrs->Get( nWhich ) );
+ aNewAttr.Put( aSetItem.GetItemSet() );
+ }
}
break;
More information about the Libreoffice-commits
mailing list