SwTextBoxHelper::syncProperty(): avoid crash on not-yet-inserted shape

Change-Id: I3308ba685b4066ea6849e8002e9d98cc5264c368
This commit is contained in:
Miklos Vajna
2014-05-27 09:05:16 +02:00
parent f1ada85a95
commit 0baec97070

View File

@@ -105,6 +105,10 @@ uno::Any SwTextBoxHelper::getXTextAppend(SwFrmFmt* pShape, const uno::Type& rTyp
void SwTextBoxHelper::syncProperty(SwFrmFmt* pShape, sal_uInt16 nWID, sal_uInt8 nMemberId, const OUString& rPropertyName, const css::uno::Any& rValue)
{
// No shape yet? Then nothing to do, initial properties are set by create().
if (!pShape)
return;
uno::Any aValue(rValue);
nMemberId &= ~CONVERT_TWIPS;