Kaydet (Commit) ad8aeb6e authored tarafından Miklos Vajna's avatar Miklos Vajna

SwTextBoxHelper::create(): initialize size

On import, syncProperty() takes care of this, but in case the user
interactively adds a textbox, when we need to handle the size in
create() as well.

Change-Id: I9428a682dbf70550bdfd081900e8098aeb64d38f
üst cd0ff1b3
......@@ -66,6 +66,10 @@ void SwTextBoxHelper::create(SwFrmFmt* pShape)
aSet.Put(aCntnt);
pShape->SetFmtAttr(aSet);
}
// Also initialize the properties, which are not constant, but inherited from the shape's ones.
uno::Reference<drawing::XShape> xShape(pShape->FindRealSdrObject()->getUnoShape(), uno::UNO_QUERY);
syncProperty(pShape, RES_FRM_SIZE, MID_FRMSIZE_SIZE, "Size", uno::makeAny(xShape->getSize()));
}
}
......
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