diff --git a/src/inet/visualizer/canvas/scene/NetworkNodeCanvasVisualization.cc b/src/inet/visualizer/canvas/scene/NetworkNodeCanvasVisualization.cc index 5843e1ab9bd..43df498fcb6 100644 --- a/src/inet/visualizer/canvas/scene/NetworkNodeCanvasVisualization.cc +++ b/src/inet/visualizer/canvas/scene/NetworkNodeCanvasVisualization.cc @@ -33,9 +33,9 @@ NetworkNodeCanvasVisualization::NetworkNodeCanvasVisualization(cModule *networkN annotationFigure = new cPanelFigure("annotation"); addFigure(annotationFigure); submoduleBounds = getEnvir()->getSubmoduleBounds(networkNode); - submoduleBounds.height += 32; // KLUDGE extend bounds for submodule name label submoduleBounds.x = -submoduleBounds.width / 2; submoduleBounds.y = -submoduleBounds.height / 2; + submoduleBounds.height += 32; // KLUDGE extend bounds for submodule name label if (networkNode->hasPar("canvasImage") && strlen(networkNode->par("canvasImage")) != 0) { imageFigure = new cImageFigure("node"); imageFigure->setTooltip("This image represents a network node");