Kaydet (Commit) 785ad9bd authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1209783 Dereference before null check

Change-Id: Idac50085b04a2520b87bb4912e24fe59eae0a372
üst 3697e91e
...@@ -2823,7 +2823,7 @@ SwFlyFrmFmt* SwWW8ImplReader::ConvertDrawTextToFly(SdrObject* &rpObject, ...@@ -2823,7 +2823,7 @@ SwFlyFrmFmt* SwWW8ImplReader::ConvertDrawTextToFly(SdrObject* &rpObject,
MatchSdrItemsIntoFlySet( rpObject, rFlySet, pRecord->eLineStyle, MatchSdrItemsIntoFlySet( rpObject, rFlySet, pRecord->eLineStyle,
pRecord->eLineDashing, pRecord->eShapeType, aInnerDist ); pRecord->eLineDashing, pRecord->eShapeType, aInnerDist );
SdrTextObj *pSdrTextObj = PTR_CAST(SdrTextObj, rpObject); SdrTextObj *pSdrTextObj = dynamic_cast<SdrTextObj*>(rpObject);
if (pSdrTextObj && pSdrTextObj->IsVerticalWriting()) if (pSdrTextObj && pSdrTextObj->IsVerticalWriting())
rFlySet.Put(SvxFrameDirectionItem(FRMDIR_VERT_TOP_RIGHT, RES_FRAMEDIR)); rFlySet.Put(SvxFrameDirectionItem(FRMDIR_VERT_TOP_RIGHT, RES_FRAMEDIR));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment