Skip to content
Snippets Groups Projects
Commit a70cf355 authored by Florian Hölzl's avatar Florian Hölzl
Browse files

bugfix sfit bug 7182: labels have additional image

parent 07bd08ce
No related branches found
No related tags found
No related merge requests found
...@@ -73,7 +73,7 @@ import org.fortiss.tooling.kernel.ui.service.IModelElementHandlerService; ...@@ -73,7 +73,7 @@ import org.fortiss.tooling.kernel.ui.service.IModelElementHandlerService;
* @author hoelzl * @author hoelzl
* @author $Author$ * @author $Author$
* @version $Rev$ * @version $Rev$
* @ConQAT.Rating YELLOW Hash: CD1071857B9255A7644C2F83F6366AE1 * @ConQAT.Rating YELLOW Hash: B7BB6E68977D1BA5C377B722B2D560CE
*/ */
public abstract class PositionedEditPartBase<T extends ILayoutedModelElement> extends public abstract class PositionedEditPartBase<T extends ILayoutedModelElement> extends
GraphicalEditPartBase<T> implements NodeEditPart { GraphicalEditPartBase<T> implements NodeEditPart {
...@@ -189,8 +189,10 @@ public abstract class PositionedEditPartBase<T extends ILayoutedModelElement> ex ...@@ -189,8 +189,10 @@ public abstract class PositionedEditPartBase<T extends ILayoutedModelElement> ex
if(labelFigure != null && labelFigure.getParent() != null) { if(labelFigure != null && labelFigure.getParent() != null) {
labelFigure.setText(determineLabelFigureText()); labelFigure.setText(determineLabelFigureText());
labelFigure.setIcon(IModelElementHandlerService.INSTANCE.getModelElementHandler( if(labelFigure.getIcon() != null) {
getModel()).getIcon(getModel())); labelFigure.setIcon(IModelElementHandlerService.INSTANCE.getModelElementHandler(
getModel()).getIcon(getModel()));
}
Rectangle labelBounds = determineLabelFigureBounds(); Rectangle labelBounds = determineLabelFigureBounds();
labelFigure.setBounds(labelBounds); labelFigure.setBounds(labelBounds);
labelFigure.getParent().setConstraint(labelFigure, labelBounds); labelFigure.getParent().setConstraint(labelFigure, labelBounds);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment