diff --git a/src/inet/visualizer/canvas/scene/NetworkNodeCanvasVisualization.cc b/src/inet/visualizer/canvas/scene/NetworkNodeCanvasVisualization.cc index 43df498fcb61..4b379a0b8824 100644 --- a/src/inet/visualizer/canvas/scene/NetworkNodeCanvasVisualization.cc +++ b/src/inet/visualizer/canvas/scene/NetworkNodeCanvasVisualization.cc @@ -215,10 +215,10 @@ void NetworkNodeCanvasVisualization::layout() std::vector rcs; // rectangles of annotations already positioned std::vector pts; // candidate points where annotations may be positioned cFigure::Rectangle extendendSubmoduleBounds = submoduleBounds; - extendendSubmoduleBounds.x -= annotationSpacing / 2; - extendendSubmoduleBounds.y -= annotationSpacing / 2; - extendendSubmoduleBounds.width += annotationSpacing; - extendendSubmoduleBounds.height += annotationSpacing; + extendendSubmoduleBounds.x -= annotationSpacing; + extendendSubmoduleBounds.y -= annotationSpacing; + extendendSubmoduleBounds.width += 2 * annotationSpacing; + extendendSubmoduleBounds.height += 2 * annotationSpacing; rcs.push_back(extendendSubmoduleBounds); pts.push_back(getTopLeft(extendendSubmoduleBounds)); pts.push_back(getTopCenter(extendendSubmoduleBounds));