Commit a70cf355 authored by Florian Hölzl's avatar Florian Hölzl
Browse files

bugfix sfit bug 7182: labels have additional image

parent 07bd08ce
......@@ -73,7 +73,7 @@ import org.fortiss.tooling.kernel.ui.service.IModelElementHandlerService;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: CD1071857B9255A7644C2F83F6366AE1
* @ConQAT.Rating YELLOW Hash: B7BB6E68977D1BA5C377B722B2D560CE
*/
public abstract class PositionedEditPartBase<T extends ILayoutedModelElement> extends
GraphicalEditPartBase<T> implements NodeEditPart {
......@@ -189,8 +189,10 @@ public abstract class PositionedEditPartBase<T extends ILayoutedModelElement> ex
if(labelFigure != null && labelFigure.getParent() != null) {
labelFigure.setText(determineLabelFigureText());
if(labelFigure.getIcon() != null) {
labelFigure.setIcon(IModelElementHandlerService.INSTANCE.getModelElementHandler(
getModel()).getIcon(getModel()));
}
Rectangle labelBounds = determineLabelFigureBounds();
labelFigure.setBounds(labelBounds);
labelFigure.getParent().setConstraint(labelFigure, labelBounds);
......
Supports Markdown
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