Skip to content

Commit 3de88f0

Browse files
committed
ticket:4178 Update the text binding when reference shape is changed.
1 parent 8b76c51 commit 3de88f0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

OMEdit/OMEditGUI/Annotations/ShapeAnnotation.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1097,6 +1097,10 @@ void ShapeAnnotation::referenceShapeChanged()
10971097
updateShape(pShapeAnnotation);
10981098
setPos(mOrigin);
10991099
setRotation(mRotation);
1100+
if (dynamic_cast<TextAnnotation*>(this)) {
1101+
TextAnnotation *pTextAnnotation = dynamic_cast<TextAnnotation*>(this);
1102+
pTextAnnotation->updateTextString();
1103+
}
11001104
update();
11011105
mpParentComponent->shapeUpdated();
11021106
}

0 commit comments

Comments
 (0)